Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
11724 | Mar 15,2004 12:42 AM UTC | Mar 15,2004 06:10 AM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
this.grid.ListBoxSelectionMode = SelectionMode.One;
If you do not want to use ListBoxSelectionMode, then the grid.AllowSelections property controls how selections behave. You can set flags so only rows are allowed. But if you only want a single row without using ListBoxSelection, then you would have to handle grid.Model.SelectionsChanging. In the handler, if e.Range.IsRows is false or if e.Range.Height is not 1, then set e.Cancel = true to cancel the selections. 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.
This page will automatically be redirected to the sign-in page in 10 seconds.