public override void InitializeCell(DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, int rowIndex)
{
base.InitializeCell(cell, cellType, rowState, rowIndex);
switch (cellType)
{
case DataControlCellType.Header:
HeaderStyle.Set(HeadStyle).Set(FieldStyle);
break;
case DataControlCellType.Footer:
FooterStyle.Set(FootStyle).Set(FieldStyle);
break;
default:
ItemStyle.Set(FieldStyle);
if (Width != null) ItemStyle.Width = Unit.Parse(Width);
InitializeControls(cell, cellType, rowState, rowIndex);
if (cellType == DataControlCellType.DataCell) cell.DataBinding += ItemDataBinding;
break;
}
}