Dim txt As TextBox = DirectCast(timegrid.Rows(0).FindControl("your_textbox_id"), TextBox) SetFocus(txt)
foreach (GridViewRow gvr in GridView2.Rows) { TextBox txt1 = (TextBox)gvr.FindControl("txt2"); txt1 .Focus(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)