Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DataGrid events

Reply
Thread Tools

DataGrid events

 
 
tshad
Guest
Posts: n/a
 
      09-16-2008
I am using vs 2008 and am confused as to what the sender is in DataGrid
events.

You use DataGridItemEventsArgs:

Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs)

So I thought I had a DataGridItem as my object.

But apparently that is not the case.

Is the object of all the DataGrid events a DataGrid and the events always
DataGridItemEventArgs?

Thanks,

Tom


 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      09-16-2008
> Is the object of all the DataGrid events a DataGrid and the events always
> DataGridItemEventArgs?


The eventargs will vary depending on the particular event, but yes, the
sender will always be the DataGrid as long as the event was intiated from
the grid itself (and not, for example, a second datagrid).


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
runtime events that generate other controls and events newbye ASP .Net 0 07-06-2006 06:27 PM
Events Events Events Please Help Chris ASP .Net Web Controls 0 08-30-2005 08:21 PM
order of events - dynamic checkbox events =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?= ASP .Net 0 08-17-2005 10:36 PM
Re: passing variables between web page events & httpmodules events Alvin Bruney ASP .Net 1 11-24-2003 04:14 PM
Passing Variables between Web Page Events and HttpModule Events shiv ASP .Net 0 11-21-2003 04:29 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57