I am using a datagrid with a "Bound" column, a "Template" column and an "EditCommand" column.
The "EditCommand" column has an "Edit" button which when clicked shows a text box in the "Template" column which the user can enter text into.
How do you set the focus to the text box when it appears?
I have used Javascript like this:
but it does not work in this case.Code:<script language="javascript">document.getElementById('TextBox1').focus();</script>




Reply With Quote