編集

次の方法で共有


DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject.DoDefaultAction Method

Definition

public:
 override void DoDefaultAction();
public override void DoDefaultAction ();
override this.DoDefaultAction : unit -> unit
Public Overrides Sub DoDefaultAction ()

Exceptions

The DataGridViewButtonCell returned by the Owner property does not belong to a DataGridView control.

-or-

The DataGridViewButtonCell returned by the Owner property belongs to a shared row.

-or-

In .NET 5 and later versions, the Owner property is null.

Remarks

The DoDefaultAction method causes the button in the DataGridViewButtonCell to be clicked.

Applies to

See also