Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to capture row change event
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01332419
Message ID:
01332799
Vues:
6
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform