public override void InitializeCell(DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, int rowIndex) { base.InitializeCell(cell, cellType, rowState, rowIndex); if (cellType == DataControlCellType.DataCell) { var testButtonItemTemplate = new TestButtonItemTemplate(DataField); testButtonItemTemplate.DataBinding += (sender, args) => DataBinding.Invoke(this, args); ItemTemplate = testButtonItemTemplate; } }