I’m trying to set the focus to the first textbox of the row I’m editing in a datagrid when I press the edit button on the row. Problem is I don’t know how to reference the textbox.
I’ve tried:
// Set the script to focus and select the TextBox
ltlScript = "((TextBox)e.Item.Cells[1].Controls[1]).focus()";
and
ltlScript = "('DataBinder.Eval(Container.DataItem, 'FirstName')').focus()";
neither work. Any suggestions on this?
Thank you!
iRead
I’ve tried:
// Set the script to focus and select the TextBox
ltlScript = "((TextBox)e.Item.Cells[1].Controls[1]).focus()";
and
ltlScript = "('DataBinder.Eval(Container.DataItem, 'FirstName')').focus()";
neither work. Any suggestions on this?
Thank you!
iRead