共用方式為


DataGrid.PrepareContainerForItemOverride(DependencyObject, Object) 方法

定義

針對指定的項目準備新資料列。

protected:
 override void PrepareContainerForItemOverride(System::Windows::DependencyObject ^ element, System::Object ^ item);
protected override void PrepareContainerForItemOverride (System.Windows.DependencyObject element, object item);
override this.PrepareContainerForItemOverride : System.Windows.DependencyObject * obj -> unit
Protected Overrides Sub PrepareContainerForItemOverride (element As DependencyObject, item As Object)

參數

element
DependencyObject

新的 DataGridRow

item
Object

資料列包含的資料項目。

適用於