Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Nested gridviews - try to understand
Message
From
17/04/2007 12:30:41
 
 
To
14/04/2007 02:09:56
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01215903
Message ID:
01216823
Views:
20
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
Previous
Reply
Map
View

Click here to load this message in the networking platform