Linda,
>I have a screen which has some fields with no binding source where the user enters criteria for locating a record. A datagridview displays the resulting data set. I would like to change the values of some of the criteria selection textboxes and combo boxes as the user moves through the grid whose values come from related tables. I put that code in the mmDataGridView_RowEnter method. It seems to lag behind the cursor moves, however.
>
>Now I have moved it to the SelectionChanged method and it works perfectly. When would I use the RowEnter method?
RowChanged fires when a row receives focus but before it becomes the current row—that explains the lag you’re seeing. If you check out the following link, you’ll see Microsoft’s example sets the BackColor of the cells in the current row when the RowChanged event is raised.
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com