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

How to make multiple rows select entire record set

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!

1 Reply

AD Administrator Syncfusion Team 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;

Live Chat Icon For mobile
Up arrow icon