DataGridViewCell.MouseDoubleClickUnsharesRow 方法

定義

指出當使用者按兩下資料列中的儲存格時,是否取消共用該資料列。

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

參數

傳回

如果會取消共用資料列則為 true,否則為 false。 基底 DataGridViewCell 類別永遠會傳回 false

備註

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

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

適用於

另請參閱