DataGridViewCell.ClickUnsharesRow(DataGridViewCellEventArgs) DataGridViewCell.ClickUnsharesRow(DataGridViewCellEventArgs) DataGridViewCell.ClickUnsharesRow(DataGridViewCellEventArgs) DataGridViewCell.ClickUnsharesRow(DataGridViewCellEventArgs) Method

定義

指出當按下儲存格時,儲存格的資料列是否會取消共用。Indicates whether the cell's row will be unshared when the cell is clicked.

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

參數

傳回

如果會取消共用資料列則為 true,否則為 falsetrue if the row will be unshared, otherwise, false. 基底 DataGridViewCell 類別永遠會傳回 falseThe base DataGridViewCell class always returns false.

備註

方法只會在OnClick方法之前呼叫。 ClickUnsharesRowThe ClickUnsharesRow method is called just before the OnClick method. true如果的OnClick呼叫具有取消共用儲存格的資料列的效果,則必須傳回。It must return true if the call to OnClick 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.

適用於

另請參閱