public void CreateTableCellControls(List <TableCellObject> cellObjects)
        {
            int totalCell = cellObjects.Count;

            AddTableCells(totalCell);
            if (totalCell == 2)
            {
                string temp = "";
            }
            if (totalCell > 0)
            {
                for (int i = 0; i < totalCell; i++)
                {
                    TableCell       cell        = (TableCell)this.Controls[i];
                    TableCellObject cellObj     = (TableCellObject)cellObjects[i];
                    string          elementType = cellObj.Element.ElementType;
                    PropertyPage    page        = cellObj.CreatePropertyPage();
                    if (cellObj.Element != null && page != null)
                    {
                        page.Properties = cellObj.Element.Properties;
                        cell.Element    = page;
                    }
                }
            }
        }
 public void AddCellsFromControl(List <TableCell> cellCtrls)
 {
     foreach (TableCell cell in cellCtrls)
     {
         TableCellObject cellObject = new TableCellObject();
         cellObject.TableCellName = cell.Name;
         if (cell.Element != null)
         {
             cellObject.AddElementFromControl(cell.Element);
         }
         TableCells.Add(cellObject);
     }
 }