[]
        
(Showing Draft Content)

C1.Win.FlexGrid.C1FlexGridBase.Clear

Clear Method

Clear(ClearFlags, CellRange)

Clears a range.

Declaration
public void Clear(ClearFlags clearFlags, CellRange rg)
Parameters
Type Name Description
ClearFlags clearFlags

ClearFlags value that specifies the elements to clear.

CellRange rg

Range to clear.

Clear(ClearFlags, int, int, int, int)

Clears a range.

Declaration
public void Clear(ClearFlags clearFlags, int topRow, int leftCol, int bottomRow, int rightCol)
Parameters
Type Name Description
ClearFlags clearFlags

ClearFlags value that specifies the elements to clear.

int topRow

Top row in the range.

int leftCol

Left column in the range.

int bottomRow

Bottom row in the range.

int rightCol

Right column in the range.

Clear(ClearFlags, int, int)

Clears a cell.

Declaration
public void Clear(ClearFlags clearFlags, int row, int col)
Parameters
Type Name Description
ClearFlags clearFlags

ClearFlags value that specifies the elements to clear.

int row

Row index.

int col

Column index.

Clear(ClearFlags)

Clears the grid.

Declaration
public void Clear(ClearFlags clearFlags)
Parameters
Type Name Description
ClearFlags clearFlags

ClearFlags value that specifies the elements to clear.

Remarks

The Clear(ClearFlags, CellRange) method does not affect the number of rows and columns on the grid, and can't be used to clear data when the grid is bound to a data source.

Clear()

Clears the grid.

Declaration
public virtual void Clear()
Remarks

This method removes all data, styles, and user data from all cells, rows, and columns on the grid.

The Clear(ClearFlags, CellRange) method does not affect the number of rows and columns on the grid, and can't be used to clear data when the grid is bound to a data source.