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

Resetting groups of style properties

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

1 Reply

AD Administrator Syncfusion Team 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);

Live Chat Icon For mobile
Up arrow icon