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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Resetting groups of style properties

Thread ID:





15226 Jun 15,2004 02:42 AM UTC Jun 15,2004 12:58 PM UTC WinForms 1
Tags: GridControl
Sue Harris
Asked On June 15, 2004 02:42 AM UTC

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 12:58 PM UTC

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.

Please sign in to access our forum

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

Live Chat Icon For mobile
Live Chat Icon