VGridControlBase.DeleteRecord(Int32) Method

Deletes a record from the vertical grid.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v20.1.dll

Declaration

public virtual void DeleteRecord(
    int recordIndex
)
Public Overridable Sub DeleteRecord(
    recordIndex As Integer
)

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.

See Also