DataGridViewCell.DoubleClickUnsharesRow(DataGridViewCellEventArgs) DataGridViewCell.DoubleClickUnsharesRow(DataGridViewCellEventArgs) DataGridViewCell.DoubleClickUnsharesRow(DataGridViewCellEventArgs) DataGridViewCell.DoubleClickUnsharesRow(DataGridViewCellEventArgs) Method

定义

指示在双击单元格时,是否对该单元格所在的行取消共享。Indicates whether the cell's row will be unshared when the cell is double-clicked.

protected:
 virtual bool DoubleClickUnsharesRow(System::Windows::Forms::DataGridViewCellEventArgs ^ e);
protected virtual bool DoubleClickUnsharesRow (System.Windows.Forms.DataGridViewCellEventArgs e);
abstract member DoubleClickUnsharesRow : System.Windows.Forms.DataGridViewCellEventArgs -> bool
override this.DoubleClickUnsharesRow : System.Windows.Forms.DataGridViewCellEventArgs -> bool
Protected Overridable Function DoubleClickUnsharesRow (e As DataGridViewCellEventArgs) As Boolean

参数

返回

如果不共享该行,则为 true;否则为 falsetrue if the row will be unshared, otherwise, false. DataGridViewCell 基类总是返回 falseThe base DataGridViewCell class always returns false.

注解

DoubleClickUnsharesRow之前调用方法OnDoubleClick方法。The DoubleClickUnsharesRow method is called just before the OnDoubleClick method. 它必须返回true如果在调用OnDoubleClick的单元格的行取消共享状态的效果。It must return true if the call to OnDoubleClick has the effect of unsharing the cell's row. 否则,它应返回falseOtherwise, it should return false.

有关行共享的详细信息,请参阅缩放 Windows 窗体 DataGridView 控件的最佳做法For more information about row sharing, see Best Practices for Scaling the Windows Forms DataGridView Control.

适用于

另请参阅