I've created a table with several columns and rows. I can set auto width on the cells and containing text OK, the issue is that the cells are independent of the cells above and below (rows have associated cells not the table). i.e. using auto width will give misaligned columns. I know that I can get around this with fixed width cells but then I have an issue with growing onto multiple lines when I need column width to change.Is there a way of using auto width that will use the largest content of all cells in a given column? similar to a HTML table?
Any ideas anyone?
Hi,
I'm not sure exactly what you are asking. It sound like you may be looking for the PerformAutoResize method on the column. Or perhaps you need the AllowColSizing property.
aim123 said:The issue is with the infragistics.document.reports not ultragrid or webgrid.
In that case, you should post your question in the Documents forum, not the WinGrid forum.
Hi Mike,The issue is with the infragistics.document.reports not ultragrid or webgrid. The issue is with instances of ITableCell in that their size is calculated independently of the other ItableCell instances in a given column. I need all cells in a given column to be of a standard width but I want them to auto size based on content.i.e. column 1 - cell 1 has no content whereas column 1 - cell 2 has lots of text. I want to use auto size on column 1 - cell 2 to resize based on content, but at the same time I want it to resize column1 - cell 1 to the same size as column 1 - cell 2 hence keeping the columns inline. Currently the only way I can get uniform table is to specify the width of the cell instances for a given column but I need to use AutoWidth.Instance.