Monday 10 December 2012

Bind RowIndex to CommandArgument

This code used to pass rowindex for the button when using rowcommand

ASPX
<asp:Button id="Button1" runat="server" CommandName="MyCommand" Text="KlikMe" 
CommandArgument='<%# Container.DataItemIndex %>' /> 

No comments:

Post a Comment