table column width

Stimulsoft Reports.WEB discussion
Post Reply
chiara
Posts: 13
Joined: Tue Jul 15, 2014 7:31 am

table column width

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: table column width

Post 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.
chiara
Posts: 13
Joined: Tue Jul 15, 2014 7:31 am

Re: table column width

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: table column width

Post 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.
chiara
Posts: 13
Joined: Tue Jul 15, 2014 7:31 am

Re: table column width

Post by chiara »

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: table column width

Post by HighAley »

Hello.

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

Thank you.
Post Reply