Results 1 to 2 of 2

Thread: buttonColumn

  1. #1
    Join Date
    Dec 1969

    Default buttonColumn

    Hi all,<BR> I&#039;ve got a datagrid wil edit/update/cancel column <BR>now if I want to add a delete button I would add the following:<BR>&#060;asp:ButtonColumn Text="Delete" <BR>ButtonType="PushButton" CommandName="Delete" &#062;&#060;/asp:ButtonColumn&#062;<BR><BR>Problem: How do I call another sub instead of the delete routine (Datagrid_DeleteCommand)<BR>eg. I want to call another sub that binds another grid on the page when I click on the button column.<BR><BR>Thanks.

  2. #2
    Join Date
    Dec 1969

    Default Err just call it

    Either don&#039;t set the CommandName="Delete" and run your code in the ItemCommand event handler or just call your sub from the DeleteCommand event handler.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts