Results 1 to 2 of 2

Thread: DataGrid Highlight Problems

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Dunmow,Essex,England
    Posts
    898

    DataGrid Highlight Problems

    Hi All,

    I'm using an ADO recordset to bind to a Datagrid (no problem there). The problem is when I do a find on the recordset, the recordselector moves to the correct record on the datagrid however the new row doesn't get highlighted. The original row is the one that stays highlighted. How can I get the new row to highlight. I've tried a refresh and I've tried forcing a click event, but it doesn't seem to work.

    Regards
    Bill Crawley

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    I've never worked with the DataGrid, but this is how I do it with the MSFlexGrid. Perhaps the code can be translated to fit your needs (at worst, your thread will get bumped up. Hopefully, someone will have a solution for the DataGrid.)
    VB Code:
    1. With MSFlexGrid1
    2.    .Row = 2 ' any row
    3.    .Col = 0
    4.    .ColSel = .Cols - 1
    5. End With
    6. End Sub

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