protected override void InitializeControls(DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, int rowIndex)
{
button = new LinkButton { CommandName = CommandName };
button.SetId(ChildId);
if (Click != null) button.Click += Click;
cell.Controls.Add(button);
tooltipbutton = new LinkButton { CommandName = CommandName, Visible = false};
tooltipbutton.SetId(ChildId);
cell.Controls.Add(tooltipbutton);
if (ShowLabelIfDisabled)
{
labelIfDisabled = new Label { Visible = false };
cell.Controls.Add(labelIfDisabled);
tooltiplabelIfDisabled = new Label { Visible = false };
cell.Controls.Add(tooltiplabelIfDisabled);
}
}