DataGridViewButtonCell.MouseDownUnsharesRow 方法

定義

指出當指標位於某資料列的儲存格上,並按住滑鼠按鈕時,是否會取消共用該資料列。

protected:
 override bool MouseDownUnsharesRow(System::Windows::Forms::DataGridViewCellMouseEventArgs ^ e);
protected override bool MouseDownUnsharesRow (System.Windows.Forms.DataGridViewCellMouseEventArgs e);
override this.MouseDownUnsharesRow : System.Windows.Forms.DataGridViewCellMouseEventArgs -> bool
Protected Overrides Function MouseDownUnsharesRow (e As DataGridViewCellMouseEventArgs) As Boolean

參數

傳回

如果使用者按下滑鼠左鍵則為 true,否則為 false

備註

方法 MouseDownUnsharesRow 會在方法之前 OnMouseDown 呼叫。 如果的呼叫OnMouseDown具有取消共享資料列rowIndex的效果,則必須傳回 true 。 否則應該會傳回 false

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

適用於

另請參閱