Page 1 of 1

Setting the height for check boxes cells in a table

Posted: Mon May 02, 2011 5:20 am
by John
Hallo Support,

I have c# code which creates a StiTable and a mixture of text cells and checkbox cells. For the text cells, the WordWrap, CanGrow, and GrowToHeight properties are set to true. The table uses styles for odd and even rows. When a text does not fit in one text cell it automatically breaks over 2 or more lines. The height of the cell then grows. The other text cells in the row also grow accordingly - no problem. Now the difficult part: the height of the check box cells should also grow but the size of the checkbox itself (in my case either a tick or a circle) should remain the same. I can't get this to work. If I set GrowToHeight=true for a checkbox then all the heights match in the row and the even/odd styling is correct but the size of the checkbox itself is now larger, which is not what I want. The checkbox should remain the same size and the spacing above and below it should increase. How can I do this? I tried also CanGrow, but this made no difference.

I'd send you a screenshot but I haven't found out how to do it.

Best regards,

John Kitching

Setting the height for check boxes cells in a table

Posted: Mon May 02, 2011 12:50 pm
by Andrew
Hello,

Thank you for the question.

To attach a screenshot, please login and see the screenshot which button you must click to attach an image.

Waiting for your screenshot! :biggrin:
Thank you.

Setting the height for check boxes cells in a table

Posted: Tue May 03, 2011 8:12 am
by John
Hallo Andrew,

thanks for the info. I've added the screenshot now. I hope it's clear what I mean.

Regards,

John Kitching

Setting the height for check boxes cells in a table

Posted: Wed May 04, 2011 8:27 am
by Alex K.
Hello,

Please see the sample report in attachment.

Thank you.

Setting the height for check boxes cells in a table

Posted: Thu May 05, 2011 1:44 am
by John
Hi,

thanks for the download example. I've had a good look at it and can see that it is what I require. What I don't understand is how you managed to split what looks like a normal column into 3 columns: spacers left and right, and the checkbox in the middle. The separating marks between the columns are different from normal - normally there is a clear black dividing line. In this case there is a dashed line.
Can you please explain how these cells were created.

Many thanks,

John Kitching

Setting the height for check boxes cells in a table

Posted: Thu May 05, 2011 8:36 am
by Alex K.
Hello,

You can add by columns to the left and to the right and then set the borders.

Thank you.

Setting the height for check boxes cells in a table

Posted: Fri May 06, 2011 4:31 am
by John
Great,

I've finally understood it now!

Thanks very much.

Regards,

John K.

Setting the height for check boxes cells in a table

Posted: Fri May 06, 2011 6:26 am
by Andrew
Hello!

Perfect! :biggrin: