VGridControl.RemoveFromComparison(Int32) Method
In This Article
Removes a specific record from the comparison collection.
Namespace: DevExpress.XtraVerticalGrid
Assembly: DevExpress.XtraVerticalGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
record |
Int32 | The index of the record to be removed from the comparison. |
#Returns
Type | Description |
---|---|
Boolean | true if the record was successfully removed from the comparison; otherwise, false. |
#Remarks
The VGridControl allows you to compare records if the AllowRecordComparison property is set to true.
The RemoveFromComparison method removes a record from the comparison collection.
#Example
The following example removes the focused record (FocusedRecord) from the comparison.
using DevExpress.XtraVerticalGrid;
private void btnRemoveFromComparison_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e){
vGridControl1.RemoveFromComparison(vGridControl1.FocusedRecord);
}
See Also