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.

GDBG row selections.

Thread ID:





27633 Apr 14,2005 08:15 PM Apr 14,2005 09:04 PM Windows Forms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On April 14, 2005 08:15 PM

I have a GDBG with the with ListBoxSelectionMode set to NONE so I can select and move columns around. For one reason or the other I would like to select and high light selected rows as well. To do that I implemented following code: private void Grid_CurrentCellActivating(object sender, GridCurrentCellActivatingEventArgs e) { if( e.ColIndex != 0 ) { GridRangeInfo range; range = GridRangeInfo.Row( e.RowIndex ); this.Grid.Selections.Add(range); } e.ColIndex = 0; } and it works but I need to stay within the selected cell since I have many editable cell within the grid. e.ColIndex = 0 call resets the cell selection but keeps the row selection. If I remove that call my selected cell stays active ( obviously ) but the row selection is cleared. Is there a way to implement what I''m after?

Administrator [Syncfusion]
Replied On April 14, 2005 09:04 PM

Take a look at the \Syncfusion\Essential Suite\\Windows\Grid.Windows\Samples\Quick Start\HighlightCurrentRow sample and see if that does what you need.


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.