windowsforms-devexpress-dot-xtraverticalgrid-dot-vgridcontrol-ca6c3e3c.md
Indicates whether you can add or remove the selected records from the comparison.
Namespace : DevExpress.XtraVerticalGrid
Assembly : DevExpress.XtraVerticalGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid
[EditorBrowsable(EditorBrowsableState.Advanced)]
public bool CanUseSelectionForComparison()
<EditorBrowsable(EditorBrowsableState.Advanced)>
Public Function CanUseSelectionForComparison As Boolean
| Type | Description |
|---|---|
| Boolean |
true if there is more than one selected record; otherwise, false.
|
The VGridControl allows you to compare records if the AllowRecordComparison property is set to true.
Ensure the CanUseSelectionForComparison method returns true to add (AddSelectionToComparison) or remove (RemoveSelectionFromComparison) the selected records from the comparison.
The CanUseSelectionForComparison returns true if the following conditions are met:
If the CanUseSelectionForComparison method returns true , the Add Selection to Comparison and Remove Selection from Comparison menu items are displayed in the context menu of record headers.
See Also