DataGridViewCheckBoxCell.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

參數

e
DataGridViewCellMouseEventArgs

DataGridViewCellMouseEventArgs,包含滑鼠點選的相關資料。

傳回

一定是 true

備註

按下滑鼠按鈕一律會取消共用包含此類型儲存格的數據列。

MouseDownUnsharesRow 在之前 OnMouseDown呼叫 。 如果的呼叫OnMouseDown具有取消共用包含儲存格之資料列的效果,則它必須傳回 true 。 否則應該會傳回 false

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

適用於

另請參閱