How do I set focus to the first input field when I edit a row in GridView?
Posted on 2006-07-11
I want to set focus to the first input field in the row when the user selects "edit". I tried adding:
Control input1 = GridView1.Rows[e.NewEditIndex].Cells.Controls;
to the Rowediting event handler but this doesn't work because none of the Cells have controls.
So I tried :
but that didn't appear to do anything.
I guess I'm barking up the wrong tree. Any ideas?