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.

Setting a cell pattern?

Thread ID:





4070 Apr 27,2003 05:42 PM Apr 28,2003 01:23 AM Windows Forms 1
Tags: GridControl
Sue Harris
Asked On April 27, 2003 05:42 PM

Hi, I'm trying to set the pattern for a cell, but I get compile errors on PatternStyle and ForeColor as they are Read Only properties of the BrushInfo. My code is: this.gridControl[1,1].Interior.PatternStyle = PatternStyle.Horizontal; Can you please tell me what I'm doing wrong. Thanks. Sue

Administrator [Syncfusion]
Replied On April 28, 2003 01:23 AM

You need to create a new brush object with the desired properties. gridControl1[1,1].Interior = new BrushInfo(PatternStyle.Horizontal, Color.Red, Color.White); The Samples\Quick Start\CellStyles has some additionnal sample code.


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.