Setting the height for check boxes cells in a table
Posted: Mon May 02, 2011 5:20 am
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
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