Hi Frederic STECZYCKI,
We have analyzed your requirement of " how to ensure that a desired Item (or row) is visible on screen" can be achieved by using the ScrollInView method. You must pass the desired row column index as a parameter.
Kindly refer the below code snippet
this.sfDataGrid.ScrollInView(new RowColumnIndex(30, 4)); |
You can also refer our online user guide documentation regarding the same by the following link.
UG link: https://help.syncfusion.com/winui/datagrid/selection#scroll-to-particular-rowcolumnindex
Another requirement of "get the focus on a chosen column" can be achieved by using the MoveToCurrentCell method. You must pass the chosen row column index as a parameter.
Kindly refer the below code snippet
this.sfDataGrid.MoveCurrentCell(new RowColumnIndex(30, 4)); |
You can also refer our online user guide documentation regarding the same by the following link.
UG link: https://help.syncfusion.com/winui/datagrid/selection#process-current-cell
We have attached the sample for your reference.
We hope this helps. Please let us know, if need any further assistance.
Note: -To ensure a particular row is visible during the initialization loading of SfDataGrid, it's advisable to invoke the methods within the 'sfDataGrid.Loaded' event.
Regards,
Chidanand M.
Attachment:
SfDataGrid_Net_1b039db3.zip