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.
Unfortunately, activation email could not send to your email. Please try again.

Different type of selection (Row/col)

Thread ID:

Created:

Updated:

Platform:

Replies:

36404 Oct 28,2005 02:09 PM Oct 31,2005 03:34 PM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 28, 2005 02:09 PM

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

Administrator [Syncfusion]
Replied On October 28, 2005 06:20 PM

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.

Administrator [Syncfusion]
Replied On October 31, 2005 09:19 AM

Thank !

Administrator [Syncfusion]
Replied On October 31, 2005 03:34 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;