2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
Disable the multiple range selectionTo disable the multiple range selection of cells for a particular column, you need to cancel the SelectionChanging event. The following code explains about how to disable the selection for second column. C# this.gridControl1.SelectionChanging += gridControl1_SelectionChanging void gridControl1_SelectionChanging(object sender, Syncfusion.Windows.Forms.Grid.GridSelectionChangingEventArgs e) { //consider 2nd column as OrginalTextBox celltype. if (e.Reason == GridSelectionReason.MouseMove && e.ClickRange.Left == 2) { e.Cancel = true; } }
VB Private Me.gridControl1.SelectionChanging += AddressOf gridControl1_SelectionChanging Private Sub gridControl1_SelectionChanging(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.GridSelectionChangingEventArgs) 'Consider 2nd column as OrginalTextBox celltype. If e.Reason = GridSelectionReason.MouseMove AndAlso e.ClickRange.Left = 2 Then e.Cancel = True End If End Sub Samples: C#: Selection VB: Selection |
2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.