The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
How do I programatically select a row in a GridDataBoundGrid? If the row to be selected is beyond current view layout of the grid, what would be the best way to scroll to this row given that only row index is known?
1. Although the row is selected, the row header doesn't show an indicator that the row has been selected, as it would normally do when a user clicks on a row.
2. Occasionally, only the first few columns of the row are highlighted rather than the entire row. (This is quite sporadic!)
3. If the above piece of code is executed from within a CurrentCellEditingComplete event handler and the row to be selected is beyond current view layout, the grid behaviour I see is - the grid scrolls and briefly selects the row and then immediately the selection is changed and focused on to the range of rows that covered the scrolled area.
ADAdministrator Syncfusion Team December 5, 2006 12:33 PM UTC
Hi,
Use the Model.Selections property to manages selected ranges in the grid. It allows you to add and remove selections, determines selection state of a specific cell. Use the below code to select a row in a grid.