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

Alternate Row colors with GridGrouping Control

Thread ID:





36846 Nov 10,2005 08:54 PM UTC Nov 10,2005 09:03 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On November 10, 2005 08:54 PM UTC

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 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.


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