DoDefaultAction Method

DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject.DoDefaultAction Method ()

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

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

Exception Condition

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.


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

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft