ComponentOne FlexGrid for WinForms
Clearing Styles
FlexGrid for WinForms Task-Based Help > Clearing C1FlexGrid > Clearing Styles

To clear the style formatting of C1FlexGrid, add the following Clear method. In this example, the code was added to the Click event of the Clear Styles button.

To write code in Visual Basic

Visual Basic
Copy Code
Me.C1FlexGrid1.Clear(C1.Win.C1FlexGrid.ClearFlags.Style)

To write code in C#

C#
Copy Code
this.c1FlexGrid1.Clear(C1.Win.C1FlexGrid.ClearFlags.Style);

This topic illustrates the following:

Clicking Clear Styles clears only the style formatting, not the contents or UserData of the grid.