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
close icon

Alternate Row colors with GridGrouping Control

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?

1 Reply

AD Administrator Syncfusion Team November 10, 2005 09:03 PM UTC

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.

Loader.
Live Chat Icon For mobile
Up arrow icon