Ejemplo n.º 1
0
        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;
            }
        }