Hi,
As attached, we have a wingrid and scrollbars proeprty under diaplaylayout set to Automatic, But when Grid load withour any row its displaying horizontal scrollbar by default.
Can you please suggest hot to hide the horizontal scroll permanently and allow verticle scroll as and wehn required.
Thanks,
Sumit
I'm not sure what I am looking at in the screen shot you have here.
Is this two grids? Or just one grid with multiple ColScrollRegions?
Does the grid have a DataSource? Does it have columns? I can't see what's at the top of the screen shot because it's cut off.
If the grid is not displaying any columns or rows, but it has a DataSource, then it's probably basing the horizontal width on some arbitrary minimum or maybe it's estimating what the virtual horizontal width should be.
But I really can't guess what's happening here without more information or maybe even a sample project I can run.
Hi Mike ..there are two grid in attacheed screen shot ..our question is very simple here ...how to hide the horizintal scroll from grid ?
Your question seems simple, but I don't think it is. The simple answer is that if you set the ScrollBars property to Automatic, the grid will only show scrollbars when they are needed.
In your case, you are apparently hiding all of the rows in the grid and you are not showing any headers, but the grid is still showing the scrollbars. This is probably because the horizontal scrollbars are based on the Band and column widths. It does not matter if there are no rows, because the grid does not consider the rows when determining the visibility of the horizontal scrollbar. The reason for this is that it would be horribly inefficient for the grid to loop through every row to determine if any of the rows are visible every time it needs to determine whether to show the scrollbars or not. And in the vast majority of cases, there is always a row visible - or at least the column headers are visible.
If you know there will be nothing visible in the grid, you could set the ScrollBars property to None to hide both scrollbars.