Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lookup table for DataGridView ComboBoxColumn
Message
De
07/10/2007 12:30:05
 
 
À
07/10/2007 06:06:51
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01258030
Message ID:
01259264
Vues:
14
Andrus,

To be honest, I have not used the DataGridView "for real", I've only played with it a little (since it is new to 2.0 and I've been doing this since way back when).

I had to create a special grid for our framework a few months ago and I found some sample code online somewhere that got me pointed in the right direction (it still needed a lot of tweaking), but it used the old DataGrid, not the new DataGridView. I could *NOT* figure out how to utilize the same concepts with the DataGridView (lots of differences between the two controls), so I kept it as a DataGrid. Consequently, I'm really not familiar with all the events that go with the DataGridView.

Sorry I can't be of more help. In defense of John's suggestion ... you *did* say you wanted this to work with the Tab key, and you didn't say anything about other keys or mouse clicks. I assumed you only wanted this to happen with a special key.

~~Bonnie


>>Ah, John ... I knew there was a method *somewhere* that would prevent the Tab from causing focus to leave the Combo, I just couldn't remember what it was. Thanks!
>
>Bonnie,
>
>focus can changed by using mouse or some other keys like page down also.
>How to fix this code for all those cases ?
>
>Meybe come DataGridView method like OnCellValidating can help ?
>OnCellValidating seems to be called before OnValidating method.
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform