nested tables width

I recently upgraded to the new version 8.103.0.30 and I have a little problem with nested tables.
In version 7 set the width of a nested table as the sum of the widths of individual cells of the nested table itself.
For example:

rlk.ChildTableDescriptor.Columns (0). HeaderText = "Name"
rlk.ChildTableDescriptor.Columns (0). Width = 150

rlk.ChildTableDescriptor.Columns (1). HeaderText = "Type"
rlk.ChildTableDescriptor.Columns (1). Width = 100

rlk.ChildTableDescriptor.Columns (2). HeaderText = Other "
rlk.ChildTableDescriptor.Columns (2). Width = 100

In this example the nested table is a large 350 (the sum of the width of each cell).

In the new version the same code produces a different result in that the width of the nested table appears to be the same width of the parent table and all cells are of equal width.

I modified the above example by eliminating the width setting for the last cell

rlk.ChildTableDescriptor.Columns (0). HeaderText = "Name"
rlk.ChildTableDescriptor.Columns (0). Width = 150

rlk.ChildTableDescriptor.Columns (1). HeaderText = "Type"
rlk.ChildTableDescriptor.Columns (1). Width = 100

rlk.ChildTableDescriptor.Columns (2). HeaderText = Other "
'''''''''Rlk.ChildTableDescriptor.Columns (2). Width = 100

In this case the cells "Name" and "Type" are correctly dimensioned, while the last cell occupies the remaining space up to the size of the parent table.

How do I size the nested table to a width "custom"?
Probably I set some specific property but can not locate it.

Sincerely
Maurizio Selvaggini



1 Reply

JB Jaffersathick B Syncfusion Team March 31, 2010 04:36 AM UTC

Hi Maurizio,


Thank you for using Syncfusion products.


I am afraid ,that I was unable to reproduce this issue. I have created a simple sample to meet your requirement but the reported issue does not occur.

Please refer the code snippet below:
[CS]

this.GridGroupingControl1.Width = 800;

ChildTableRelationDescriptor.ChildTableDescriptor.Columns[0].Width = 50;
ChildTableRelationDescriptor.ChildTableDescriptor.Columns[1].Width = 50;
ChildTableRelationDescriptor.ChildTableDescriptor.Columns[2].Width = 50;
ChildTableRelationDescriptor.ChildTableDescriptor.Columns[3].Width = 50;
ChildTableRelationDescriptor.ChildTableDescriptor.Columns[4].Width = 50;
ChildTableRelationDescriptor.ChildTableDescriptor.Columns[5].Width = 50;



Please provide us a issue reproducing simple sample. so that we could short out the cause of this issue and provide us the better solution.


Let me know if you have any queries .

Regards,
Jaffer.B

Loader.
Up arrow icon