Re: HTMLTable\Cell\AddControl

Tech-Archive recommends: Fix windows errors by optimizing your registry



Eliyahu:

If I have a control in the cell and replace it using
tblDisplay.Rows[0].Cells[0].Controls.Add(aCtl);

It adds the control below the existing one. How do I remove the existing control first?

TIA

Eliyahu Goldin wrote:
tblDisplay.Rows[0].Cells[0].Controls.Add(aCtl);

Eliyahu

"gh" <gh@xxxxx> wrote in message news:uvxDuvnIGHA.3056@xxxxxxxxxxxxxxxxxxxxxxx

I have a HTML Table with 1 row and 1 column. I have a control I want to add to the cell at runtime based on a condition. I can get the control added by creating a row and cell and using the code below:

cell.Controls.Add(aCtl);
row.Cells.Add(cell);
tblDisplay.Rows.Add(row);

Is there a way to add the control to the row and cell already setup in the table? When I try, tblDisplay.Controls.Add(aCtl), I get the following error message:
'HtmlTable' cannot have children of type 'display_ascx'.



TIA



.



Relevant Pages

  • Epigenetic Control of the Postphylotypic Development
    ... Epigenetic Control of the Postphylotypic Development ... inducing there muscle cell differentiation and muscle formation ... of Muscle Research and Cell Motility 23: ... Epigenetics of the Development of Endocrine Glands ...
    (talk.origins)
  • THE EPIGENETIC SYSTEM OF HEREDITY
    ... CNS control of the deposition of maternal cytoplasmic factors in the egg cell ... This explains the fact that some parts of the embryo (those ... genes) but by the epigenetic information maternally deposited in the egg in the ...
    (sci.bio.evolution)
  • Re: Epigenetic Control of the Postphylotypic Development
    ... The central neural control of individual development is also ... inducing there muscle cell differentiation and muscle formation ... Epigenetics of the Development of Endocrine Glands ...
    (talk.origins)
  • Epigenetic control of the early developmen
    ... Epigenetic control of the early development ... mitotic cell division. ... before the large-scale expression of zygotic genes (12th cell division ... the embryo, thus leading to formation of a syncytial blastoderm. ...
    (talk.origins)
  • Re: Automatically naming and linking controls
    ... Yes, change "Sheet1" to whatever sheet contains the controls, or use ... A control can be resized to cover any number of cell. ... problem of any mis-aligned objects identifying the wrong linked cell. ...
    (microsoft.public.excel.worksheet.functions)