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.

Current Cell in GDBG

Thread ID:





22265 Dec 8,2004 07:27 AM Dec 8,2004 08:08 AM Windows Forms 3
Tags: GridControl
Aaron Andreson
Asked On December 8, 2004 07:27 AM

I have configured my GDBG to select the entire row when any cell is clicked. I don''t want the current cell to be highlighted with the border and white background. I have not been able to produce this yet. Aaron

Administrator [Syncfusion]
Replied On December 8, 2004 07:35 AM

You have set ListBoxSelectionMode to something other than None, correct? To avoid seeing the current cell, try handling the CurrentCellActivating event and in the handler, set e.ColIndex = 0.

Aaron Andreson
Replied On December 8, 2004 08:00 AM

I achieved my desired result by handling the CellClick event and setting e.Cancel to true so a cell can never be activated. I then proceed to select the row that was clicked. I added an exception for the 0-th row so I can still sort my columns. What effect will changing the ListBoxSelectionMode have? I have it set to None currently. Aaron

Administrator [Syncfusion]
Replied On December 8, 2004 08:08 AM

ListBoxSelectionMode will tell the grid to select whole rows when your clicks any cell in teh row. You can have several different behaviors like MultiExtended selections, Simple selections and One selection. With this setting, you do not have to manually add row ranges to the grid.Selections collection.


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.