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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Different type of selection (Row/col)

Thread ID:





36404 Oct 28,2005 06:09 PM UTC Oct 31,2005 08:34 PM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On October 28, 2005 06:09 PM UTC

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 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.

Administrator [Syncfusion]
Replied On October 31, 2005 02:19 PM UTC

Thank !

Administrator [Syncfusion]
Replied On 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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon