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

How to make multiple rows select entire record set

Thread ID:

Created:

Updated:

Platform:

Replies:

8463 Nov 6,2003 06:21 PM UTC Nov 6,2003 07:17 PM UTC WinForms 1
loading
Tags: GridControl
Brian Bacon
Asked On November 6, 2003 06:21 PM UTC

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 07:17 PM UTC

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.

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

;