Share via


ModuleListPage.EmptyGrouping Field

Definition

A ModuleListPageGrouping object that signifies no grouping.

protected: static initonly Microsoft::Web::Management::Client::ModuleListPageGrouping ^ EmptyGrouping;
protected static readonly Microsoft.Web.Management.Client.ModuleListPageGrouping EmptyGrouping;
 staticval mutable EmptyGrouping : Microsoft.Web.Management.Client.ModuleListPageGrouping
Protected Shared ReadOnly EmptyGrouping As ModuleListPageGrouping 

Field Value

Examples

The following example checks the value of the SelectedGrouping property before calling the Group method.

private void updateGrouping(bool clearItems) {

    ListView.BeginUpdate();
    try {
        if (clearItems)
            ListView.Items.Clear();

        if (SelectedGrouping != null &&
            SelectedGrouping != EmptyGrouping)
            Group(SelectedGrouping);

    } finally {
        ListView.EndUpdate();
        Update();
    }
} 

Applies to