Focus on datagrid
-
Hi, I have an header detail type of entry. For the detail part I have an datagrid placed. There is a command button which is used to add a new row on the datagrid. I would like to set the focus on the newly added row's first cell on the button click. Can anyone please help for this? Ram
-
Hi, I have an header detail type of entry. For the detail part I have an datagrid placed. There is a command button which is used to add a new row on the datagrid. I would like to set the focus on the newly added row's first cell on the button click. Can anyone please help for this? Ram
At the time of adding new row, you have the index of that row, find the control in first cell, get its client ID and register a startup script to focus that control...... the the script should be something like .. RegisterStartupScript("setFocus","document.getElementById('"+ control.ClientID +"').focus();")
-----