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

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

To write code in Visual Basic

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

To write code in C#

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

Note that there will be no visible change to the grid when clearing UserData, since UserData only stores data that is useful to the application.