Determining row that caused an ItemCommand

Discussion in 'ASP .Net Datagrid Control' started by William Gower, Apr 27, 2004.

  1. I have an Edit button on a datagrid. When the edit button is clicked, how
    do i know which row is the one where the button was clicked?
    William Gower, Apr 27, 2004
    #1
    1. Advertising

  2. William Gower

    Rick Spiewak Guest

    You get the item (row) in e.item. If you want to refer it back to the
    underlying datasource, use e.item.datasetindex.

    "William Gower" <> wrote in message
    news:...
    > I have an Edit button on a datagrid. When the edit button is clicked, how
    > do i know which row is the one where the button was clicked?
    >
    >
    Rick Spiewak, Apr 29, 2004
    #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. RTM
    Replies:
    4
    Views:
    2,758
    mikeb
    Jan 20, 2004
  2. Nathan Sokalski

    Determining What Control Caused The PostBack

    Nathan Sokalski, Sep 5, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    935
    Nathan Sokalski
    Sep 5, 2005
  3. =?Utf-8?B?ZGNoaWxsbWFu?=

    Determining control that caused a postback

    =?Utf-8?B?ZGNoaWxsbWFu?=, Oct 18, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    4,343
    =?Utf-8?B?ZGNoaWxsbWFu?=
    Oct 19, 2005
  4. Nathan Sokalski

    Determining What Control Caused The PostBack

    Nathan Sokalski, Sep 5, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    4
    Views:
    136
    Nathan Sokalski
    Sep 5, 2005
  5. Nathan Sokalski

    Determining What Control Caused The PostBack

    Nathan Sokalski, Sep 5, 2005, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    162
    Nathan Sokalski
    Sep 5, 2005
Loading...

Share This Page