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.

How do we configure this grid to not allow partially selecting rows?

Thread ID:

Created:

Updated:

Platform:

Replies:

104698 Aug 10,2012 12:05 AM Aug 13,2012 01:25 AM Windows Forms 1
loading
Tags: Grouping
Jason Glover
Asked On August 10, 2012 12:05 AM

How do we configure this grid to not allow partially selecting rows?

People are currently able to select cells like in the screenshot attached.  We don't want them to be able to.

What do we want?
  • Only a single row at a time can be selected.
  • Only a WHOLE row can be selected (no partial rows).
Key to achieving this ought to be setting the following setting... 

GridGroupingControl TableOptions.AllowSelection = GridSelectionFlags.None

But we have done that and it still allows us to partially select multiple rows.


partial select_e68c52ce.zip

Kalaiarasan B [Syncfusion]
Replied On August 13, 2012 01:25 AM

Hi,

Please use the ListBoxSelection mode to make the Grid selectable only by rows and prevent selecting cells.

this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended;// Multiple rows can be selected

this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.One;// allow to select only one row at a time

Please let me know if you have any concerns

Regards,
Kalai

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.

;