Adf.Web.UI.SmartView.IconButton.InitializeControls C# (CSharp) Method

InitializeControls() protected method

protected InitializeControls ( System.Web.UI.WebControls.DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, int rowIndex ) : void
cell System.Web.UI.WebControls.DataControlFieldCell
cellType DataControlCellType
rowState DataControlRowState
rowIndex int
return void
        protected override void InitializeControls(DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, int rowIndex)
        {
            button = new ImageButton { ImageUrl = "", CommandName = CommandName };
            button.SetId(ChildId);

            if (Click != null) button.Click += Click;

            cell.Controls.Add(button);
        }