public override void InitializeCell(DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, int rowIndex) { if (cell == null) { return; } if (this.Control is MagicForm) { cell.CssClass = "Mf_H"; if (this.Theme == MasterPageTheme.Modern) { HtmlGenericControl div = new HtmlGenericControl("div"); div.InnerHtml = this.Text; cell.Controls.Add(div); } else if (cellType == DataControlCellType.DataCell) { cell.Text = Text; } } else if (cellType == DataControlCellType.DataCell) { cell.Text = Text; } BaseValidatedField.InitializeSpannedCell(cell, cellType); base.InitializeCell(cell, cellType, rowState, rowIndex); }
/// <summary> /// Copies the properties of the current BaseValidatedField object to the specified DataControlField object. /// </summary> /// <param name="newField">The System.Web.UI.WebControls.DataControlField to copy the properties of the current Micajah.Common.WebControls.BaseValidatedField to.</param> protected override void CopyProperties(DataControlField newField) { base.CopyProperties(newField); BaseValidatedField field = newField as BaseValidatedField; if (field != null) { CopyProperties(this, field); field.ColumnSpan = this.ColumnSpan; field.CreateNewRow = this.CreateNewRow; field.HeaderGroup = this.HeaderGroup; field.Enabled = this.Enabled; field.ToolTip = this.ToolTip; field.Theme = this.Theme; } }
public override void InitializeCell(DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, int rowIndex) { base.InitializeCell(cell, cellType, rowState, rowIndex); BaseValidatedField.InitializeSpannedCell(cell, cellType); if (cellType != DataControlCellType.DataCell) { return; } if (m_Grid != null) { InitializeCommonGridViewCell(cell, rowIndex); } else if (m_MagicForm != null) { InitializeMagicFormCell(cell, rowIndex); } }
private void CopyProperties(HtmlEditor control) { BaseValidatedField.CopyProperties(this, control); control.ToolTip = this.ToolTip; }