Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to close form with esc key in Datagrid
Message
De
22/11/2006 13:55:09
 
 
À
21/11/2006 00:45:08
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 1.1
Divers
Thread ID:
01171053
Message ID:
01171880
Vues:
13
>Hi Andrus,
>
>Basically, you have to override the ProcessCmdKey method in your DataGrid sub-class ... see this article for more information:
>
>http://www.codeproject.com/cs/database/DatabaseAcessWithAdoNet1.asp#Keystrokes

Thank you. It works.
But how to close form from DataGrid ProcessCmdKey() method?

I used
((Form)this.Parent.Parent.Parent) .Close();
If grid is not placed in tabpage then this code does not work.
How to find grid parent form ?
In Visual FoxPro this is easy becauses VFP has thisform

However, DataGrid does not have parentform property.
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform