![]() ![]() Int index = Convert.ToInt32(e.CommandArgument) ![]() Convert the row index stored in the CommandArgument CommandName property to determine which button was clicked. If multiple buttons are used in a GridView control, use the Void ProductsGridView_RowCommand(Object sender, GridViewCommandEventArgs e) This enables you to determine the index of the row that contains the LinkButton control when the user clicked the button. The following example demonstrates how to use the RowCreated event to store the index of the row being created in the CommandArgument property of a LinkButton control contained in the row. public:Įvent System::Web::UI::WebControls::GridViewRowEventHandler ^ RowCreated public event .WebControls.GridViewRowEventHandler RowCreated member this.RowCreated : .WebControls.GridViewRowEventHandler Public Custom Event RowCreated As GridViewRowEventHandler Event Type GridViewRowEventHandler Examples Occurs when a row is created in a GridView control. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |