We have used to set “Stationary Margins” property to fix grid header and we are setting grid height dynamically in the application. We have an option to select number of rows to be displayed per page and values are 2,5,10,15,20,25,30,40,50,75,100. We also have options for paging and grid header filtering.
If number of rows > 10, we are displaying vertical scroll bar in the grid and setting "Stationary Margins" to "Header". So, whenever user scrolls up/down, only records will be scrolling but the grid header is fixed and this is same with when user doing paging (navigation between pages) and filtering.
If number of rows < 10, we are not displaying vertical scroll bar and not setting "Stationary Margins" (i.e no stationary margins). We are setting grid height dynamically based no of rows to be displayed in the grid. But, some times, if no of rows < 10, a gray bar (Empty row) is appearing at the bottom of grid and first row is hidden off and is going behind the grid header.
Note : We are using Infragistics version 8.2 and .Net 3.5
How to set Infragistics grid height dynamically as per above requirement?
Any help or guidance would be great assistance. See attachment.
Hello,
Try setting DisplayLayout.ScrollTop=0 at the same time you change the grid's height.
Also simply setting the height to Unit.Empty will make the grid to occupy only necessary space with no gap after the last row and the bottom of the grid. Thought I'd mention it just in case :-)
Hello Alexander Kartavov!
I am facing a problem regarding UltraWebGrid of Infragistics 2011.1 that there is one row gap between header. By deafult there is one empty row and gap show between header and that row as add a new row by editing the first one or by button, the gap remove.
and after editing the first row like here:
Another issue in both the screens is the right upper corner or grid............
Plz help me if any one have any solution...
Regards
Asjad ali
Asjad,
Were you ever able to solve you rissue of a blank area under the header before the rows start displaying? I get the same issue with a multi band ultrawebgrid, I also have an issue that the grid itself grows (almost doubles) in height after I expand the top level band (band 0).
Thanks for any insight you may have