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.

Enhanced Row Selection

Thread ID:

Created:

Updated:

Platform:

Replies:

44939 Jun 7,2006 08:25 AM Jun 8,2006 08:38 AM Windows Forms 3
loading
Tags: GridControl
Mitch Todd
Asked On June 7, 2006 08:25 AM

Hi, I have the need for a special selection implementation in my 4.1.0.50 GridControl. I have attached an image of part of my GUI to help show my layout. I have set it up kind of like Windows Explorer first of all. To help explain the image, each icon is in its own column (with their respective hearders being in a CoveredRange), and this makes a total of 12 columns. The following is what I''m looking for... -If the user selects a label in column 3 or 4 (Name of Device), each of the 2 columns are highlighted for that row. -If the user selects/highlights a checkbox cell, then each of the checkbox cells in that row are highlighted, except the cell which is the "CurrentCell" -Also, I''d like a form of extended multi-selection to be possible. I have tried a number of things with the PrepareViewStyleInfo and CellDrawn events, as well as played around alot with the AllowSelection and ListBoxSelectionMode options, but with no success. Can you give me a suggestion how to tackle this? Thank you very much ahead of time...

varselect_screenshot.zip

Administrator [Syncfusion]
Replied On June 8, 2006 01:56 AM

Hi Mitch, The intent behavior can be achieved by handling the PrepareViewStyleInfo and few other events. Please have a look at the attached sample and let us know if this serves your need. Regards, Calvin.

Selections.zip

Mitch Todd
Replied On June 8, 2006 06:39 AM

Hey Calvin, Thanks alot for the sample. I think I''ve implemented nearly the solution that I need. One other thing however... I actually created a custom cell type, as you might have been able to tell from my screenshot, that provides a much bigger checkbox. The problem is, however, that it is not possible to see when this row is highlighted, because the BackColor is literally behind the checkbox (I use an image for the checkbox)...The selection is easily visible when the grid has a ListBoxSelectionMode, as the alphablend seems to be on the top. Is there a way I can achieve this in the PrepareViewStyleInfo event? Thanks,

Administrator [Syncfusion]
Replied On June 8, 2006 08:38 AM

Hi Mitch, The intent behavior can be achieved by handling the CellDrawn event. Modified sample attached. Regards, Calvin.

Selections0.zip

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.

;