Back to Devexpress

ASPxCheckBoxList.UnselectAll() Method

aspnet-devexpress-dot-web-dot-aspxcheckboxlist-6cb0de76.md

latest2.5 KB
Original Source

ASPxCheckBoxList.UnselectAll() Method

Unselects any selected items within the ASPxCheckBoxList.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public void UnselectAll()
vb
Public Sub UnselectAll

Remarks

Use the UnselectAll method to clear the selection within an ASPxCheckBoxList. You can select all items using the ASPxCheckBoxList.SelectAll method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UnselectAll() 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.

xaf-how-to-display-a-collection-property-as-a-checked-list-box/CS/DXExample.Module.Web/WebCheckedListBoxPropertyEditor.cs#L48

csharp
control.DataBind();
control.UnselectAll();
foreach (object obj in checkedItems) {

xaf-how-to-display-a-collection-property-as-a-checked-list-box/VB/DXExample.Module.Web/WebCheckedListBoxPropertyEditor.vb#L48

vb
control.DataBind()
control.UnselectAll()
For Each obj As Object In checkedItems

See Also

SelectAll()

Check Box List

ASPxCheckBoxList Class

ASPxCheckBoxList Members

DevExpress.Web Namespace