DataGrid events

Discussion in 'ASP .Net' started by tshad, Sep 16, 2008.

  1. tshad

    tshad Guest

    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
    tshad, Sep 16, 2008
    #1
    1. Advertising

  2. tshad

    Scott M. Guest

    > 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).
    Scott M., Sep 16, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. shiv
    Replies:
    0
    Views:
    473
  2. Alvin Bruney
    Replies:
    1
    Views:
    719
  3. =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?=

    order of events - dynamic checkbox events

    =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?=, Aug 17, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    561
    =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?=
    Aug 17, 2005
  4. newbye
    Replies:
    0
    Views:
    579
    newbye
    Jul 6, 2006
  5. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    353
    Chris
    Aug 30, 2005
Loading...

Share This Page