Results 1 to 3 of 3

Thread: [RESOLVED] Highlighting Complete Row of FlexGrid

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Quetta-Pakistan
    Posts
    852

    Resolved [RESOLVED] Highlighting Complete Row of FlexGrid

    Hi,
    I want to highlight the complete row of flexgrid, i m using the below code to search and highlight but it starting the highlight from 2nd column. I have 5 columns, last one of them is hidden as its colwodth is 0
    Code:
    Dim Target As String
    Dim z As Integer
    
        
        Target = LCase$(Srch)
        For z = 1 To msh.Rows - 1
            If InStr(1, LCase$(msh.TextMatrix(z, 0)), Target) Then
                With msh
                    Dim y As Integer
                        For y = 1 To .Cols - 1
                            .Row = z
                            .Col = y
                            .CellBackColor = RGB(145, 175, 210)
                            .CellFontBold = True
                        Next y
                End With
            End If
        Next z

  2. #2
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: Highlighting Complete Row of FlexGrid

    Try
    Code:
    For y = 0 To .Cols - 1

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Quetta-Pakistan
    Posts
    852

    Re: Highlighting Complete Row of FlexGrid

    Thanks Doogle, Resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width