DataGridViewLinkCell::DataGridViewLinkCellAccessibleObject::DoDefaultAction Method ()

 
Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
[SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::UnmanagedCode)]
virtual void DoDefaultAction() override

Exception Condition
InvalidOperationException

The cell returned by the Owner property has a DataGridView property value that is not null and a RowIndex property value of -1, indicating that the cell is in a shared row.

The DoDefaultAction method navigates to the link provided in the DataGridViewLinkCell.

SecurityPermission

to call unmanaged code. Demand value: Demand. Permission value: UnmanagedCode

.NET Framework
Available since 2.0
Return to top
Show: