We have a table with static column widths for all columns but one. We calculate the width for the Description column so that the table width is 100% of the containing page. We are using the following binding for the Description column:
where WidthForDescriptionColumn simply subtracts predefined column widths from the page width based on their visibility.
One of our customers complained that they use large numbers (like 8 digits + 2 decimal) and they get wrapped in the column. We decided to implement dynamic column widths for some columns using an approach mentioned at https://www.telerik.com/forums/auto-size-for-textbox#6rdYCe6DPUygy_EmqRM5sg . It did work, however since WidthForDescriptionColumn still returned a static value, the rightmost column got pushed beyond page edge.
The question is, is there a simpler way of achieving the following scenario:
1. Some table columns should have static width.
2. Some table columns should have dynamic width based on its content (actually something like min-width).
3. One of table columns should have dynamic width which is calculated so that the table width would be 100% of the containing page.