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.
Simple question: How do I set the current selected row in a GridControl? A property such as GridControl.CurrentRow = 3 would be great. I'm using the following code but I end up with 1 row being selected and another being the current cell. Must be an easier way than this!
Public Sub SetRowAsCurrent(ByVal rowIndex As Integer)
If rowIndex < m_Grid.Rows.HeaderCount Or rowIndex > m_Grid.RowCount Then Exit Sub End If
'clear any selected ranges m_Grid.Selections.Clear(False)
Sorry to ask such simple questions, but how do I retrieve the current rowIndex? I have tried many many properties such as CurrentCell.RowIndex, CurrentCell.MoveFromRowIndex etc. but none of these return the correct row index!
Is there some documentation somewhere outlining the differences between all of the CurrentCell/Selections/Ranges properties? Couldn't find anything in the Knowledge Base to help me
many thanks
Richard
HAhaneefm Syncfusion Team July 12, 2007 08:52 PM UTC
Hi Richard,
How do I retrieve the current rowIndex? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
You can retrieve the current rowIndex by using the CurrentCell.RowIndex.But I am not sure of what be might be causing this strange behavior without a working sample. I have tested this issue in browser sample with Essentail studio V.4.x/5.x. But i was not able to reproduce the issue. Is it possible for you to upload us a minimal sample or modify the browser sample to reproduce the issue here? This will help us to analyse the issue further.