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.
I use gridControl to display some data,and i set ListBoxSelectionMode=One.when I click one row,it will select that row. now I want to select a row after I load data,and some rows can't select ,that is select these row ,it always select the first row . how to do this?
ADAdministrator Syncfusion Team December 17, 2003 07:06 AM UTC
One way to do this would be to use grid.CurrentCell.MoveTo to position the current cell where you want it. With ListBoxMode set to One, this should also select the row. (If you are doing this initially before the grid has been displayed, you may also need to set grid.ForceCurrentCellMoveTo = true to make the moveto ''take'').
KIKisDecember 17, 2003 11:04 PM UTC
thanks Clay Burch
but when I click the No. 9 row and I want it can Focus in the NO. 5 row,it can't work. how to set this?
ADAdministrator Syncfusion Team December 18, 2003 05:41 AM UTC
Try handling the CurrentCellActivating event and setting the e.RowIndex there.