Skip to main content
A newer version of this page is available. .

VGridControlBase.DeleteRecord(Int32) Method

Deletes a record from the vertical grid.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v19.1.dll

Declaration

public virtual void DeleteRecord(
    int recordIndex
)

Parameters

Name Type Description
recordIndex Int32

An integer value that specifies the index of the record to be deleted.

Remarks

Use the DeleteRecord method to delete records from the vertical grid. The DeleteRecord method is only in effect if the vertical grid functions in bound mode.

 

Note

The DeleteRecord method is only in effect for data sources that support record deletion. This method not only removes a row(s) from a grid but also deletes the object which represents this row in the data source. For instance, if the data source is a DataView object, the rows are represented as DataRow objects and the DeleteRecord method invokes its Delete method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DeleteRecord(Int32) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also