Sdílet prostřednictvím


DataGrid.CurrentCell Vlastnost

Definice

Získá nebo nastaví buňku, která má fokus.

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

Hodnota vlastnosti

Informace o buňce, která má fokus.

Poznámky

Vrácená hodnota je struktura, která poskytuje informace o buňce a datové položce přidružené k buňce. Nejedná se o skutečný odkaz na DataGridCell kontejner.

Pokud chcete nastavit vlastnosti u vybraných buněk, můžete ve CellStyle vlastnosti nastavit aktivační událost. Další informace najdete na webu CellStyle.

Platí pro

Viz také