Hi,
I have a button in the templated column of ultraweb grid.
How can i get the templated column button click event .
Thanks in advance.
Hello,
Please take a look at the code below:
ASPX:<Columns> <igtbl:TemplatedColumn> <CellTemplate> <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click"/> </CellTemplate> </igtbl:TemplatedColumn>
C#: protected void Button1_Click(object sender, EventArgs e) { // TO DO }
Hope this helps
I tried it.And I have a need to get the corresponding rowindex on the button click.
How can I get it.
In the event handler you can try something similar to thi
Button button = sender as Button; CellItem parentCell = (CellItem) button.NamingContainer;
int rowIndex =parentCell.Cell.Row.BandIndex;