共用方式為


DataGrid.CurrentCell 屬性

定義

取得或設定有焦點的細胞。

public:
 property System::Windows::Controls::DataGridCellInfo CurrentCell { System::Windows::Controls::DataGridCellInfo get(); void set(System::Windows::Controls::DataGridCellInfo value); };
public System.Windows.Controls.DataGridCellInfo CurrentCell { get; set; }
member this.CurrentCell : System.Windows.Controls.DataGridCellInfo with get, set
Public Property CurrentCell As DataGridCellInfo

屬性值

關於該細胞的資訊,該細胞有焦點。

備註

回傳的值是一個結構,提供關於儲存格及其相關資料項目的資訊。 這並不是對容器 DataGridCell 的實際指涉。

要設定選取儲存格的屬性,可以在屬性中 CellStyle 設定觸發條件。 如需詳細資訊,請參閱CellStyle

適用於

另請參閱