示例#1
0
文件: TestButton.cs 项目: NLADP/ADF
        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;
            }
        }