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.

Selection problems

Thread ID:

Created:

Updated:

Platform:

Replies:

20387 Oct 15,2004 08:36 AM Oct 15,2004 10:51 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 15, 2004 08:36 AM

In our grid, we have a hierarchical list. We have special selection needs. When a cell is selected, we need to entire row selected. When a row that is a parent to other rows is selected, all the child rows need to be selected. All of this works perfectly by handling the GridSelectionChanging event. The problem is that if the user selects a cell in a parent row, for example, and it selects the parent row and all child rows, if the user then selects a cell from the parent row again, the selection is cleared via a GridSelectionChanging event, followed by a GridSelectionChanging event with the new selection. The problem is this causes a flicker in the current selection that is very noticeable and annoying. Can you guys think of a way to handle this? Is there any way to know, for example, that when I''m getting the GridSelectionChanging with an empty selection that a new selection is on the way so that I can ignore the selection clearing event? I just can''t figure out a way around it. Thanks.

Administrator [Syncfusion]
Replied On October 15, 2004 10:51 AM

When e.Range.IsEmpty, you can get the clicked cell from e.ClickRange. Once you have the cell, maybe you can test it to see if it is in the parent row of the current selection.

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.

;