Hi Otavio Lima,
To perform cell selection, you need to set the `gridGroupingControl1.TableOptions.AllowSelection` as `GridSelectionFlags.Cell`.
Code snippet :
this.gridGroupingControl1.TableOptions.AllowSelection = Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Cell; |
You can get notification for the cell selection by using the SelectionChanged and SelectionChanging event. Please refer the code snippet below.
Code snippet :
this.gridGroupingControl1.TableModel.SelectionChanging += OnTableModel_SelectionChanging;
this.gridGroupingControl1.TableModel.SelectionChanged += OnTableModel_SelectionChanged;
private void OnTableModel_SelectionChanging(object sender, Syncfusion.Windows.Forms.Grid.GridSelectionChangingEventArgs e)
{
Console.WriteLine("Changing");
}
private void OnTableModel_SelectionChanged(object sender, Syncfusion.Windows.Forms.Grid.GridSelectionChangedEventArgs e)
{
Console.WriteLine("Changed");
} |
Regards,
Sampath Narayanan.S