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.
Hi,
I have made a grid like a list by setting ListBoxSelectionMode = SelectionMode.One. If all cells are static type, how can I select a row programmically (mimic clicking on row header).
In a case like this, clicking any static cell will still highlight the row, but CurrentCell's RowIndex is still -1.
Thanks!
James
ADAdministrator Syncfusion Team October 13, 2003 06:10 PM UTC
You can call model.Selections.SelectRange(GridRangeInfo.Row(rowIndex), true);
Stefan
JAJamesOctober 15, 2003 12:42 PM UTC
It does select the first row with some side effect. It set the foucs on first static column (the cell's color changed to white). How to get ride of that?
Thanks!
ADAdministrator Syncfusion Team October 15, 2003 02:56 PM UTC
Try handling the CurrentCellActivating event, and in your handler, set e.ColIndex = 0.