Results 1 to 4 of 4

Thread: [RESOLVED] Flexigrid forecolor

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2006
    Posts
    59

    Resolved [RESOLVED] Flexigrid forecolor

    Hi, Im sure this is ridiculously easy but im having a serious mind blank with this problem and need your assistance.

    At the moment the user of my prog can select data in a flexigrid and the record number of the selected row is shown using the .Row, However its still not very obvious to the user that the row selected is actually selected therefore i want to change the forecolor of the selected row.

    I know that the following will change the forecolor of the object
    VB Code:
    1. object.ForeColor = color

    but how do i implement it so it just changes the forecolor of the selected row?
    the flxgrd click sub as is:
    VB Code:
    1. Private Sub flxgrd_Click()
    2.  
    3. intrec = flxgrd.Row
    4. lblrecord.Caption = "Record: " & intrec & " of " & intreccount
    5.  
    6. End Sub

    any suggestions much appreciated

  2. #2

    Thread Starter
    Member
    Join Date
    Jun 2006
    Posts
    59

    Re: Flexigrid forecolor

    Found the answer to that prob.

    The following code highlights the selected row

    VB Code:
    1. With flxgrd
    2.     .SelectionMode = flexSelectionByRow
    3.     .HighLight = flexHighlightAlways
    4.     .BackColorSel = vbBlack
    5.     .ForeColorSel = vbWhite

    but i have another related problem that i have seen before and not found a solution to.

    The above code highlights the selected row as i wanted but the first column in the row isn't highlighted as the rest, it is just puts a grey boarder round it!

    How can i get the whole row to be highlighted instead of just from the second column on??
    Last edited by helpjaypls; Jul 12th, 2006 at 07:57 AM.

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Flexigrid forecolor

    Just change the FocusRect property to "none".

  4. #4

    Thread Starter
    Member
    Join Date
    Jun 2006
    Posts
    59

    Re: Flexigrid forecolor

    Nice one si thanks for your reply its easy when you know how.
    cheers

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