Back to Devexpress

BaseView.EndSelection() Method

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-baseview-cb25b27f.md

latest3.8 KB
Original Source

BaseView.EndSelection() Method

Enables selection updates after calling the BaseView.BeginSelection method and forces an immediate update.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public virtual void EndSelection()
vb
Public Overridable Sub

Remarks

See the BaseView.BeginSelection topic to learn more.

The following code snippets (auto-collected from DevExpress Examples) contain references to the EndSelection() 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.

winforms-preserve-grid-state-on-refresh/CS/RefreshHelperClass.cs#L143

csharp
finally {
    view.EndSelection();
}

winforms-gridlookupedit-multiple-item-selection/CS/Form1.cs#L94

csharp
}
    view.EndSelection();
}

winforms-grid-select-rows-with-mouse/CS/WindowsApplication1/Form1.cs#L34

csharp
view.SelectRange(startRow, endRow);
    view.EndSelection();
}

winforms-preserve-grid-state-on-refresh/VB/RefreshHelperClass.vb#L152

vb
Finally
    view.EndSelection()
End Try

winforms-gridlookupedit-multiple-item-selection/VB/Form1.vb#L91

vb
view.EndSelection()
End Sub

winforms-grid-select-rows-with-mouse/VB/WindowsApplication1/Form1.vb#L28

vb
view.SelectRange(startRow, endRow)
    view.EndSelection()
End If

See Also

BeginSelection()

CancelSelection()

SelectionChanged

Multiple Row and Cell Selection

BaseView Class

BaseView Members

DevExpress.XtraGrid.Views.Base Namespace