windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-baseview-cb25b27f.md
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
public virtual void EndSelection()
Public Overridable Sub
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
finally {
view.EndSelection();
}
winforms-gridlookupedit-multiple-item-selection/CS/Form1.cs#L94
}
view.EndSelection();
}
winforms-grid-select-rows-with-mouse/CS/WindowsApplication1/Form1.cs#L34
view.SelectRange(startRow, endRow);
view.EndSelection();
}
winforms-preserve-grid-state-on-refresh/VB/RefreshHelperClass.vb#L152
Finally
view.EndSelection()
End Try
winforms-gridlookupedit-multiple-item-selection/VB/Form1.vb#L91
view.EndSelection()
End Sub
winforms-grid-select-rows-with-mouse/VB/WindowsApplication1/Form1.vb#L28
view.SelectRange(startRow, endRow)
view.EndSelection()
End If
See Also