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.

備註

方法只會在OnDoubleClick方法之前呼叫。 DoubleClickUnsharesRowThe 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. 否則,它應該false會傳回。Otherwise, it should return false.

如需有關資料列共用的詳細資訊,請參閱縮放 Windows Forms DataGridView 控制項的最佳做法For more information about row sharing, see Best Practices for Scaling the Windows Forms DataGridView Control.

適用於

另請參閱