T
Tom
I'm dynamically creating a table with the 1st cell having a checkbox control
which is created and added to the cell...the next 3 cells contain textboxes.
I can set the width of the 1st cell width and that works (width changes) but
when I set the width of the cells that contain textboxes the width settings
seemed to be ignored. I'm setting the width of the textboxes and that is
working but it seems like the width of the cells are assuming the default
width of the textboxes. If I don't set the width of the textboxes the cells
and textboxes are the same width. When setting the width of the textbox the
cell width is the same.
Thanks...Tom
textBoxTax = new TextBox();
textBoxTax.Width = TAX_AMOUNT_WIDTH;
tableCell = new TableCell();
tableCell.BorderStyle = BorderStyle.Solid;
tableCell.HorizontalAlign = HorizontalAlign.Right;
tableCell.VerticalAlign = VerticalAlign.Top;
tableRow.Cells.Add(tableCell);
tableCell.Controls.Add(textBoxTax);
which is created and added to the cell...the next 3 cells contain textboxes.
I can set the width of the 1st cell width and that works (width changes) but
when I set the width of the cells that contain textboxes the width settings
seemed to be ignored. I'm setting the width of the textboxes and that is
working but it seems like the width of the cells are assuming the default
width of the textboxes. If I don't set the width of the textboxes the cells
and textboxes are the same width. When setting the width of the textbox the
cell width is the same.
Thanks...Tom
textBoxTax = new TextBox();
textBoxTax.Width = TAX_AMOUNT_WIDTH;
tableCell = new TableCell();
tableCell.BorderStyle = BorderStyle.Solid;
tableCell.HorizontalAlign = HorizontalAlign.Right;
tableCell.VerticalAlign = VerticalAlign.Top;
tableRow.Cells.Add(tableCell);
tableCell.Controls.Add(textBoxTax);