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

Setting a cell pattern?

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 05:23 AM UTC

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.

CONFIRMATION

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.

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

;