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. Image for the cookie policy date
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:





8463 Nov 6,2003 06:21 PM UTC Nov 6,2003 07:17 PM UTC WinForms 1
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;


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon