Selects all the items in a view.
Syntax
Parameters
This method has no parameters.
Remarks
Warning The SelectAll method should only be called when the SelectionMode property is set to Multiple or Extended. If SelectAll is called when the SelectionMode is Single or None, an exception is thrown.
Examples
if (itemGridView.SelectionMode == ListViewSelectionMode.Multiple ||
itemGridView.SelectionMode == ListViewSelectionMode.Extended)
{
itemGridView.SelectAll();
}
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 3/12/2013