I want to resize the grid height so that it can right fit all the visible row/row headers. I dont have a way to calculate the height.
I'm sure there's a way to get it since the grid needs this value for scrolling.
Apperciate the help in advance...
this might be a solution. I'll try it.
Thanks
hi,
I ve used the following and it holds good for me .......you can try this
i was using the grid within a panel ,so to set the panel's height i ve used the foll way to handle the grid height
dim buffervalue as integer =20
Dim gridHeight As Integer = UltraGrid1.Rows(0).Height * UltraGrid1.Rows.Count + UltraGrid1.DisplayLayout.Bands(0).Header.Height + buffervalue
just check this and finally add some buffer value for the height for asethetic reasons
just to ensure that you get the height of only visible rows ,,use the filteredout ,filterdin properties
hope this helps you out for a work around way,.,.........
hppy koding,
Arun
Actually, the grid scrolling is row-based. It always scrolls one row at a time. So it does not need (and does not maintain) the total hieght of the rows. So there's currently no easy way to get it.
You should Submit a feature request to Infragistics