Programmatically simulate CTRL + A in DataGrid in ASP.NET?

I need to select the entire DataGrid, for example the keyboard shortcut CTRL + A. For example: instead of selecting the datagrid with the mouse, the user just clicks the button and selects the datagrid. Is it possible?

0


a source to share


1 answer


While I cannot imagine the purpose of something like this, it looks like you will need to use javascript to do this. Add a button / link to the page and then use something like this script to highlight / select all the text in the DataGrid.



+1


a source







All Articles