Skip to main content
Row

Table.Delete() Method

Removes the table from the worksheet.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

void Delete()

Remarks

The Delete method removes a Table object from the TableCollection collection, and deletes data and formatting from cells. You can also use the TableCollection.Remove and TableCollection.RemoveAt methods to accomplish the same thing. To remove all tables from the worksheet, call 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