Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TableCollection.Remove(Table) Method

Removes the specified table from the collection.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

void Remove(
    Table table
)

#Parameters

Name Type Description
table Table

A Table object to be removed from the collection.

#Remarks

The Remove method removes the specified table object from the Worksheet.Tables collection, and deletes data and formatting from worksheet cells. To remove a table from the collection by its index, use the TableCollection.RemoveAt method. To remove all tables from the worksheet, use the TableCollection.Clear method.

If you need to delete a table, but leave its data in a regular cell range and convert table formatting to cell direct formatting, use the Table.ConvertToRange method.

To create a table, use the TableCollection.Add method (see the How to: Create a Table example).

See Also