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 want to be able to capture an event from the grid when the user changes selected rows.
which event from the grid should i listen to capture this here ?
I tried using the selection changed event but the first time the user clicks on the grid the value or rowIndex is -1 which doesn't help much.
Again, my requirement is to simply have an event raised when a user changes rows. In the callback of that event, i would like to know the current row selected. Any ideas? Can you send me an example.
ADAdministrator Syncfusion Team November 30, 2006 05:00 AM UTC
Hi Adam,
You can handle the CurrentCellMoved event and use Selections.Ranges.AnyRangeContains() method to determine the current row selection in a grid. Here is a code snippet
private void gridControl1_CurrentCellMoved(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellMovedEventArgs e) { GridControl grid = sender as GridControl; GridCurrentCell cc = grid.CurrentCell;