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]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment