Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nested gridviews - try to understand
Message
De
17/04/2007 12:30:41
 
 
À
14/04/2007 02:09:56
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01215903
Message ID:
01216823
Vues:
18
No, it's not a parent. The code is just casting the sender (which is the GridView) to make it easier to deal with in the EventHandler. Not really necessary, unless the EventHandler will be used by more than one Grid's RowCommand event. It could just as easily have been:
        void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            // GridView gv = (GridView)sender;
            // All statements that follow would use this.GridView1 instead of gv;
            ...
~~Bonnie





>Hi all,
>
>
>        void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
>        {
>            GridView gv = (GridView)sender;
>            ...
>
>
>Q. is: is gv parent of GridView1 ? - if not what this line mean ?
>
>TIA,
>Gojko
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