Hi,
I want to use the Ultragrid (Dock.Fill) in a TableLayoutPanel. The Row and Cell Properties are set to AutoSize. The Grid does not size correctly in the cell. It always stays the size it had in the designer.
How should I solve this problem. Is it posible at all to use this functionalitty with the ultraWinGrid?
What would also help me would be to find out what heigth the grid has after the rows where added so I could then manually set the size of the cell.
regards
Stefan
thanks for the answer. I want to resize the grid itself. e.g. I have a tablelayout showing two grids. Each grid is in a row of the panel and the row is set to autosize. When the data is loaded into the grid I want both grids to show all rows of the grid.
The thing that is happening now is that the grid has the size of the grid at design time or the defautl size so I am getting scroll bars which I don't want.
stefan
When you say "the row is set to autosize", you are talking about the row in the TableLayoutPanel? Or a row in the grid?
It sounds to me like you want the grid to size itself to it's contents, so that the grid is big enough to show all of the rows with no scrollbars. There's no functionality for this in the grid, though. You should Submit a feature request to Infragistics.
You might be able to determine the height yourself by using the row count and multiply by the row height. You will need to account for borders and headers, though, and there's no simple way to do this.
Has this feature been implemented in a more recent version?
I'm using version 9.1.20091.2012. In the attached project I have two grids inside two different groups of an UltraExplorerBar. The ExplorerBar already displays a vertical scrollbar when the expanded groups are too big. The only piece I'm missing is to make the grid autosize after binding the data.
I could set the height of the grid based on the number of rows being displayed, but I'd like to know if there's a built-in or more elegant way of doing this.
Any ideas?
No, there is still no feature built-in to the grid for this. If you have not already done so, you should Submit a feature request to Infragistics
Thanks for the answer Mike, I'll submit a feature request.