help with ItemCommand event

Discussion in 'ASP .Net Datagrid Control' started by Brian Smith, Jul 14, 2003.

  1. Brian Smith

    Brian Smith Guest

    I'm developing my first ASP .NET application and I can't
    seem to figure out what I need to do to capture the
    particular button that was clicked with the ItemCommand
    event. I have a DataGrid with a ButtonColumn and sortable
    column headings for all the columns. The column headings
    sorting function was working fine until I tried to add
    some functionality to the ButtonColumn. I know the problem
    is that I need to capture which particular button was
    clicked -- I just don't know how. Currently, whenever I
    click a button in the button column or one of the column
    headings the code in the function linked to the
    ItemCommand event runs. I want to have the column headings
    do the same thing that they used to do when clicked (sort
    the grid) and have the buttons in the button column
    display some different information. How do I capture these
    individual events?
     
    Brian Smith, Jul 14, 2003
    #1
    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. Gilles T.

    Need help with ItemCommand event

    Gilles T., Jan 5, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,576
    Gilles T.
    Jan 5, 2004
  2. Nathan Sokalski

    Event Bubbling and the ItemCommand Event

    Nathan Sokalski, May 29, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    416
    Nathan Sokalski
    May 29, 2006
  3. Gilles T.

    Need help with ItemCommand event

    Gilles T., Jan 5, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    167
    Gilles T.
    Jan 5, 2004
  4. Nathan Sokalski

    Event Bubbling and the ItemCommand Event

    Nathan Sokalski, May 29, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    153
    Nathan Sokalski
    May 29, 2006
  5. Nathan Sokalski

    Event Bubbling and the ItemCommand Event

    Nathan Sokalski, May 29, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    156
    Nathan Sokalski
    May 29, 2006
Loading...

Share This Page