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 Banding - Windows Forms DataGrid

Thread ID:





96657 Sep 24,2010 02:28 PM UTC Sep 28,2010 09:16 AM UTC ASP.NET Web Forms (Classic) 1
Tags: GridGroupingControl
Robert Avery
Asked On September 24, 2010 02:28 PM UTC

What is the best way to color even/odd (or alternating) rows differently, like you would in Quicken?

Preferably, there would be a nice easy method without having to resort to "_PrepareViewStyleInfo" events.


Jisha Joy [Syncfusion]
Replied On September 28, 2010 09:16 AM UTC

Hi Robert,

You could use the following code to set styles to alternate rows in the grouping grid.

// Applying style settings to alternate rows in the grouping grid.
this.gridGroupingControl1.Appearance.RecordFieldCell.Font.Facename = "Arial Black";
this.gridGroupingControl1.Appearance.RecordFieldCell.Font.Italic = true;
this.gridGroupingControl1.Appearance.RecordFieldCell.Interior = new Syncfusion.Drawing.BrushInfo



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

or the page will be automatically redirected to 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