or


public override void OnApplyTemplate(){ base.OnApplyTemplate(); this.ItemsHost = this.GetTemplateChild("PART_ItemsHost") as Panel; GridViewRow gridViewRow = this.RadRowItem as GridViewRow; if (this.RadRowItem != null && this.RadRowItem.GridViewDataControl == null) { this.RadRowItem.GridViewDataControl = this.RadRowItem.ParentOfType<GridViewDataControl>(); } if (gridViewRow != null) { this.Item = gridViewRow.Item; gridViewRow.EnsureDataCellsPresenterSize(); } else if (this.RadRowItem is GridViewHeaderRow) { this.Item = new object(); } else if (this.RadRowItem is GridViewFooterRow) { this.Item = this.RadRowItem.GridViewDataControl.AggregateResults; this.TrackAggregatesChanges(this.RadRowItem.GridViewDataControl.AggregateResults); } else if (this.RadRowItem is GridViewGroupFooterRow) { this.Item = this.RadRowItem.Item; } // At the time that a Row is prepared we can't Sync because the CellsPresenter isn't created yet. // Doing it here ensures that the CellsPresenter is in the visual tree. this.SyncProperties(); this.SetFrozenColumnSplitterPosition();}