Hi,
I have a simple Question,
how do I get row index value in gridview on current row after I insert value in textbox in that gridview?
I have a function textbox1_textchanged() on the textbox.
TQ in advance
In TextChanged event you can do as following
protected void txtPayAmt_Empty_TextChanged(object sender, EventArgs e) { GridViewRow gvRow = (GridViewRow)(sender as Control).Parent.Parent; int index = gvRow.RowIndex; }
Reference:ASP.Net GridView - Get Row Index on RowCommand and Click events
© COPYRIGHT 2026 ASPSnippets.com ALL RIGHTS RESERVED.