Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > help with ItemCommand event

Reply
Thread Tools

help with ItemCommand event

 
 
Brian Smith
Guest
Posts: n/a
 
      07-14-2003
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?
 
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
Event Bubbling and the ItemCommand Event Nathan Sokalski ASP .Net Web Controls 0 05-29-2006 07:16 AM
Event Bubbling and the ItemCommand Event Nathan Sokalski ASP .Net 0 05-29-2006 07:16 AM
Event Bubbling and the ItemCommand Event Nathan Sokalski ASP .Net Datagrid Control 0 05-29-2006 07:16 AM
Need help with ItemCommand event Gilles T. ASP .Net 2 01-05-2004 08:17 PM
Need help with ItemCommand event Gilles T. ASP .Net Datagrid Control 2 01-05-2004 08:17 PM



Advertisments