namespace Common
{
public class DdField : DynamicField
{
public override void InitializeCell(System.Web.UI.WebControls.DataControlFieldCell cell, System.Web.UI.WebControls.DataControlCellType cellType, System.Web.UI.WebControls.DataControlRowState rowState, int rowIndex)
{
// HACK: Fix bug for: The DynamicControl/DynamicField needs to exist inside a data control that is bound to a data source that supports Dynamic Data.
if (base.Control.FindMetaTable() == null)
return;
base.InitializeCell(cell, cellType, rowState, rowIndex);
}
}
}
namespace Common
{
public class DdControl : DynamicControl
{
protected override void OnInit(EventArgs e)
{
// HACK: Fix bug for: The DynamicControl/DynamicField needs to exist inside a data control that is bound to a data source that supports Dynamic Data.
if (this.FindMetaTable() != null)
base.OnInit(e);
}
}
}