Results 1 to 9 of 9

Thread: Highlight First Row in Flex Grid

  1. #1

    Thread Starter
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Highlight First Row in Flex Grid

    Dear Team,
    How to Highlight the First row(only) of the FlexGrid with ForeColur and
    Backcolour....?

  2. #2
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: Highlight First Row in Flex Grid

    if flexgrid.row = 0 then
    for x = 0 the flexgrid1.col -1
    flexgrid1.col = x
    flexgrid1.forecolor = color
    flexgrid1.backcolor = color
    next x

  3. #3
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Highlight First Row in Flex Grid

    without looping:
    VB Code:
    1. With MSFlexGrid1
    2.         .Redraw = False
    3.         .FillStyle = flexFillRepeat
    4.         .Row = .FixedRows
    5.         .Col = .FixedCols
    6.         .ColSel = .Cols - 1
    7.         .CellForeColor = vbRed
    8.         .CellBackColor = vbBlue
    9.         .Col = 0: .Row = 0
    10.         .FillStyle = flexFillSingle
    11.         .Redraw = True
    12.     End With

  4. #4

    Thread Starter
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Highlight First Row in Flex Grid

    Dear Bush,
    It leaves the first column without Highlighting.How to highlight the second row.And I need To Bold the First Row Contents.Pls help
    Last edited by danasegarane; Oct 10th, 2006 at 12:09 PM.

  5. #5
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Highlight First Row in Flex Grid

    you want to change the fixed column too?

    if so, try changing it to
    VB Code:
    1. .Col = 0

  6. #6

    Thread Starter
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Highlight First Row in Flex Grid

    I want to Highlight the second Row Fully and Change the Font Style as bold for the First Row.

  7. #7

    Thread Starter
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Highlight First Row in Flex Grid

    No one

  8. #8
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Highlight First Row in Flex Grid

    VB Code:
    1. With MSFlexGrid1
    2.         'Bold 1st row
    3.         .FillStyle = flexFillRepeat
    4.         .Row = 0
    5.         .Col = 0
    6.         .RowSel = .Row
    7.         .ColSel = .Cols - 1
    8.         .CellFontBold = True
    9.         .FillStyle = flexFillSingle
    10.         'Hightlight 2nd row
    11.         .Row = 1
    12.         .Col = 0
    13.         .RowSel = 1
    14.         .ColSel = .Cols - 1
    15.     End With

  9. #9

    Thread Starter
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Highlight First Row in Flex Grid

    it is not displaying the grid row itself

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