The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator 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);