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.

Alternate Row colors with GridGrouping Control

Thread ID:

Created:

Updated:

Platform:

Replies:

36846 Nov 10,2005 03:54 PM Nov 10,2005 04:03 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On November 10, 2005 03:54 PM

I am using an engine override to not display the caption in groups that only have one member. Because of this anything that doesn''t have a certain type of data looks to exist in one big listing. The problem is that the alternate row color only works within a grouping. So if I have 3 rows all in seperate groups they appear as three plain rows but there will be no alternate row color because they are really 3 separate groups of 1. Is it possible to get the row colors to alternate in this type of setup?

Administrator [Syncfusion]
Replied On November 10, 2005 04:03 PM

You can try handling the TableControlPrepareViewStyleInfo event. There is e.Style.TableCellIdentity object is pointing to one of these one row groups, you could set the e.Inner.Style.BackColor depending upon whether e.Inner.RowCount is odd or even.

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.

;