We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Different type of selection (Row/col)

Hi, Is it possible to have the ability to select multiple column and be able to select only one row. (row and column seperated, not at the same time) Thank

3 Replies

AD Administrator Syncfusion Team October 28, 2005 10:20 PM UTC

The are no property setting that will give you this behavior. But you can handle the grid.Model.SelectionChanging event. In that event, you can test e.Range (the new selection if it is not null) and grid.Selections.Ranges. If e.Range and grid.Selections.Ranges are what you want to dis-allow, you can set e.Cancel = true to cancel the new selection.


AD Administrator Syncfusion Team October 31, 2005 02:19 PM UTC

Thank !


AD Administrator Syncfusion Team October 31, 2005 08:34 PM UTC

What I did for people that are interested. Private Sub TreeGridControl_SelectionChanging(ByVal sender As Object, ByVal e As GridSelectionChangingEventArgs) Handles MyBase.SelectionChanging Dim range As GridRangeInfo If Not e.Range Is Nothing Then If e.Range.IsRows Then For Each range In Me.Selections.Ranges If range.IsRows Then e.Cancel = True Exit For End If Next End If End If End Sub

Loader.
Live Chat Icon For mobile
Up arrow icon