Hello,
is it possible to get the "minimum" size of UltraGrid component after it is bound?
I'am not using Designer, I am creating datasource and UltraGrid at runtime, I need to show UltraGrid in modal dialog (nothing more), but without space after last column and after last row - there can be 0 to 100 rows for example. I can use grid.DisplayLayout.AutoFitStyle = AutoFitStyle.ResizeAllColumns and set fixed Width, but in case of two columns it is not pretty. And what about Rows ?
thank you for any advices.
Jan
You can try this.
<ultragrid1>.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds
.ScrollToFill;
<ultragrid1>.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle
.Immediate;
Hi Jan,
No, the grid does not have this functionality. It would be very complicated to calculate the height of the row, because you would have to take into account the borders, headers, scrollbars, etc. The same goes for Columns.
You should submit this to Infragistics as a feature request:
Request a Feature or Component