Hello,
By default, when the webdatagrid is databinded, a Button in the first row is focused. How can I prevent this?
Hello Ramon,
Please feel free to contact me if you are still experiencing any issues with this scenario.
WebDataGrid should not be focusing any cells by default (in this case I am assuming you are referring to a template field). A small sample would allow me to investigate why the cell is getting focused in this case. Setting the active cell in the grid however can also be achieved on initialization using something similar to:
function WebDataGrid1_Grid_Initialize(sender, eventArgs) { //set some cell as active on initialization sender.get_behaviors().get_activation().set_activeCell(sender.get_rows().get_row(0).get_cell(1)) }
Hope this helps. Please do not hesitate to contact me with any questions.