Showing posts with label
GridView
.
Show all posts
Showing posts with label
GridView
.
Show all posts
Thursday, November 17, 2016
Find the index of current row in Grid View
Assume there is a control within a grid view template field. On the TextChanged event, we can get the selected index as below.
[code]
int index = ((GridViewRow)(((TextBox)sender).Parent.Parent)).RowIndex;
[/code]
Older Posts
Home
Subscribe to:
Posts (Atom)