Software: Visual Studio 2010, Asp.Net 4.0
I am working with multiple tables that are stacked vertically on top of each other, all generated dynamically in the codebehind. I would like to ensure that the first column in each table is the same width, based on the longest text present in the first column. Initially, there is no set width because the cell needs to adjust based on its content.
It's important to note that the first column (td) in every row of each table contains a label.
For example:
Table1 (first column)
1
12
Table2 (first column)
123
1234
In this case, the largest text is in the cell with [1234]. I want to set the first column cells in the other tables to match this width.
Check out a basic layout example here: FIDDLE
Although this doesn't demonstrate the dynamic creation process, it gives a general idea of what I am trying to achieve.