Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting focus to a grid cell
Message
De
07/02/2009 19:54:46
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01379950
Message ID:
01380058
Vues:
27
Linda, is this a Web grid or a Windows grid? If you're talking about a Windows DataGridView, then probably all you need to do is set this property:

this.EditMode = DataGridViewEditMode.EditOnEnter;

~~Bonnie




>I have some very small tables in which users enter data directly. I am using buttons to add, delete, etc. When they click on the New button, I would like to put the cursor in the cell of the newly added row. I used grdMyGridControl.Focus(), which hightlights the correct cell but the user still has to click in the cell in order to start entering data. Any ideas? Thanks.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform