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

屬性值

DataGridCellInfo

關於有焦點之資料格的資訊。

備註

傳回的值是一種結構,可提供與儲存格相關聯的資料格和資料項目的相關資訊。 這不是容器的實際參考 DataGridCell

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

適用於

另請參閱