DataGridViewCheckBoxCell.ContentDoubleClickUnsharesRow(DataGridViewCellEventArgs) 方法
定義
指出當按兩下儲存格內容時,包含儲存格的資料列是否會取消共用。Indicates whether the row containing the cell will be unshared when the cell content is double-clicked.
protected:
override bool ContentDoubleClickUnsharesRow(System::Windows::Forms::DataGridViewCellEventArgs ^ e);
protected override bool ContentDoubleClickUnsharesRow (System.Windows.Forms.DataGridViewCellEventArgs e);
override this.ContentDoubleClickUnsharesRow : System.Windows.Forms.DataGridViewCellEventArgs -> bool
Protected Overrides Function ContentDoubleClickUnsharesRow (e As DataGridViewCellEventArgs) As Boolean
參數
DataGridViewCellEventArgs,包含按兩下滑鼠作業的相關資料。A DataGridViewCellEventArgs that contains data about the double-click.
傳回
如果儲存格處於編輯模式中,則為 true
,否則為 false
。true
if the cell is in edit mode; otherwise, false
.
備註
ContentDoubleClickUnsharesRow 只會在之前呼叫 OnContentDoubleClick 。ContentDoubleClickUnsharesRow is called just before OnContentDoubleClick. true
如果的呼叫具有將包含資料 OnContentDoubleClick 格的資料列取消共用的效果,則必須傳回。It must return true
if the call to OnContentDoubleClick has the effect of unsharing the row containing the cell. 它應該會傳回,否則會傳回 false
。It should return false
otherwise.
如需有關資料列共用的詳細資訊,請參閱 調整 Windows Forms DataGridView 控制項的最佳做法。For more information about row sharing, see Best Practices for Scaling the Windows Forms DataGridView Control.