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.

How to make multiple rows select entire record set

Thread ID:

Created:

Updated:

Platform:

Replies:

8463 Nov 6,2003 01:21 PM Nov 6,2003 02:17 PM Windows Forms 1
loading
Tags: GridControl
Brian Bacon
Asked On November 6, 2003 01:21 PM

I am using a data bound grid. I am using multiple rows per record. Each record is three rows. What properties do I have to set to give my grid this selection behavior: When the user selects any part of the recordset, the entire set is highlighted. The MultiRowRecord example has this behavior but I cannot determine what is causing it to have it. Thanks!

Administrator [Syncfusion]
Replied On November 6, 2003 02:17 PM

In that sample, it is code in the PrepareViewStyleInfo event that handles showing the whole current record as selected.
if (grid.IsShowCurrentRow(e.RowIndex) && !grid.CurrentCell.HasCurrentCellAt(e.RowIndex, e.ColIndex))
{
	e.Style.BackColor = SystemColors.Highlight;
	e.Style.TextColor = SystemColors.HighlightText;

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.

;