DataGridViewCell::DataGridViewCellAccessibleObject::Select Method (AccessibleSelection)
.NET Framework (current version)
Modifies the selection or moves the keyboard focus of the accessible object.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::UnmanagedCode)] virtual void Select( AccessibleSelection flags ) override
Parameters
- flags
-
Type:
System.Windows.Forms::AccessibleSelection
One of the AccessibleSelection values.
| Exception | Condition |
|---|---|
| InvalidOperationException | The value of the Owner property is null. |
The following table describes the action performed by the Select method for each flags value.
Parameter value | Action |
|---|---|
The DataGridView takes focus. | |
The DataGridViewCell that owns this DataGridViewCell::DataGridViewCellAccessibleObject takes focus. | |
The DataGridViewCell is added to the SelectedCells property. | |
The DataGridViewCell is removed from the SelectedCells property. | |
All other AccessibleSelection values | No action is taken. |
SecurityPermission
to call unmanaged code. Demand value: Demand. Permission value: UnmanagedCode
.NET Framework
Available since 2.0
Available since 2.0
Show: