DataGridViewCell.EnterUnsharesRow(Int32, Boolean) 方法

定義

指出當焦點移至儲存格時,是否將取消共用父資料列。

protected:
 virtual bool EnterUnsharesRow(int rowIndex, bool throughMouseClick);
protected virtual bool EnterUnsharesRow (int rowIndex, bool throughMouseClick);
abstract member EnterUnsharesRow : int * bool -> bool
override this.EnterUnsharesRow : int * bool -> bool
Protected Overridable Function EnterUnsharesRow (rowIndex As Integer, throughMouseClick As Boolean) As Boolean

參數

rowIndex
Int32

儲存格的父資料列索引。

throughMouseClick
Boolean

如果使用者動作將焦點移至儲存格,則為 true,如果程式設計作業將焦點移至儲存格,則為 false

傳回

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

備註

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

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

適用於

另請參閱