Page 1 of 1

table column width

Posted: Tue Oct 28, 2014 7:58 am
by chiara
Hi,
I create a table with this code
StiTable table = new StiTable();
table.Name = "TBL1" + anno;

table.ColumnCount = datatable.Columns.Count - 1;
table.RowCount = 2;
table.HeaderRowsCount = 1;
table.FooterRowsCount = 0;
table.Width = page.Width;
table.Height = page.GridSize * 12;
table.DataSourceName = String.Format("{0}", datatable.TableName);

page.Components.Add(table);

table.CreateCell();
table.TableStyle = StiTableStyle.Style12;

How can I give different widht for each row?

Thanks

Re: table column width

Posted: Tue Oct 28, 2014 1:03 pm
by HighAley
Hello.

Unfortunately, it's impossible. The width is set automatically based on the content.
It's better to use Data Band with Text Components. It gives more flexibility.

Thank you.

Re: table column width

Posted: Tue Oct 28, 2014 1:49 pm
by chiara
I have a cell with a dynamic height. How can i set this height for other cell in the same row using textcomponent?
Thanks

Re: table column width

Posted: Wed Oct 29, 2014 7:43 am
by HighAley
Hello.
chiara wrote:I have a cell with a dynamic height. How can i set this height for other cell in the same row using textcomponent?
Yes. It's better to use Grow to Height property.

Thank you.

Re: table column width

Posted: Wed Oct 29, 2014 8:46 am
by chiara
Thanks

Re: table column width

Posted: Wed Oct 29, 2014 9:27 am
by HighAley
Hello.

You are welcome.
Let us know if you need any additional help.

Thank you.