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.

Resetting groups of style properties

Thread ID:





15226 Jun 14,2004 10:42 PM Jun 15,2004 08:58 AM Windows Forms 1
Tags: GridControl
Sue Harris
Asked On June 14, 2004 10:42 PM

Is it possible to reset groups of style info properties without calling each reset function separately? For example, I''d like to be able to reset all the cell styles except for the border styles in a GridStyleInfo object. Thanks, Sue

Administrator [Syncfusion]
Replied On June 15, 2004 08:58 AM

Try code like this. I think this should reset eveything to the default except the 2 borders. GridStyleInfo style = new GridStyleInfo(GridStyleInfo.Default); style.Borders.ResetBottom(); style.Borders.ResetRight(); this.gridControl1.ChangeCells(GridRangeInfo.Cells(1,1,4,4), style, Syncfusion.Styles.StyleModifyType.Override);


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.