DataGridViewCell.ClickUnsharesRow(DataGridViewCellEventArgs) 方法

定義

指出當按下儲存格時,儲存格的資料列是否會取消共用。

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,否則為 false。 基底 DataGridViewCell 類別永遠會傳回 false

備註

方法 ClickUnsharesRow 會在方法之前 OnClick 呼叫。 如果的呼叫OnClick具有取消共享儲存格資料列的效果,它必須傳回 true 。 否則,它應該會傳回 false

如需數據列共用的詳細資訊,請參閱調整 Windows Forms DataGridView 控件的最佳做法

適用於

另請參閱