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.

Change the backcolor

Thread ID:





6012 Jul 28,2003 06:55 PM Jul 29,2003 01:48 AM Windows Forms 1
Tags: GridControl
Asked On July 28, 2003 06:55 PM

I have several cell, each has its PatternStyle or GradientStyle. How can I change their backcolor and keep their PatternStyle/GradientStyle unchanged.

Administrator [Syncfusion]
Replied On July 29, 2003 01:48 AM

BrushInfo brInfo = this.gridControl1[2,2].Interior; this.gridControl1[2,2].Interior = new BrushInfo(brInfo.GradientStyle, Color.FromArgb(255, 225, 225), Color.FromArgb(155, 125, 125)); will change the color of a cell, but keep the same GradientStyle. If each of your cells can have a different GradientStyle or different new colors, then you would have to do things cell by cell. If a ranges shared the same ultimate GradientStyle and colors, then you could use grid.ChangeCells to change the range.


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.