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

GDBG row selections.

Thread ID:





27633 Apr 15,2005 12:15 AM UTC Apr 15,2005 01:04 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On April 15, 2005 12:15 AM UTC

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 15, 2005 01:04 AM UTC

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.

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