i have a gridview in my asp.net web page am having a Textbox and a button in a gridview column.i have load some data into the gridview textbox by click the button.i have more then 25 rows in my gridview.i need to place the correct data into the textbox how can i get the row index by button click in column.
This Solved my requirement:
int Index = ((GridViewRow)((sender as Control)).NamingContainer).RowIndex;
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.