protected void _grid_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow && (e.Row.RowState & DataControlRowState.Edit) != 0) { Control c = e.Row.Cells[2].Controls[0]; this.SetFocus(c); } }
Comment