I have a grid with 3 columns, 2 of which are visible. The leftmost column is fixed width. I want the right column to display a horizontal scrollbar when there is more data in that column than its width can accommodate.
From the InitializeLayout eventhandler:
e.Layout.ScrollStyle = ScrollStyle.Immediate;
e.Layout.Scrollbars = Scrollbars.Both;
e.Layout.ScrollBounds = ScrollBounds.ScrollToFill;
e.Layout.Bands[0].Columns["TimeStamp"].Hidden = true;
e.Layout.Bands[0].Columns["Length"].Header.Caption = "Length";
e.Layout.Bands[0].Columns["Length"].Width = 27;
e.Layout.UseFixedHeaders = true;
e.Layout.Bands[0].Columns["Length"].Header.Fixed = true;
When I hover over the Description column at runtime, it displays much more data than is on the grid for that column, yet there is no horizontal scrollbar. I tried to specify a width for Description, but that had no effect.
If it matters, the grid's Dock property is set to DockStyle.Fill within a TabPage. I am using version 8.2
Hi Lars,
Just as a test, have you tried not docking the grid? Sometimes docking doesn't work as you would expect. Perhaps the grid is actually wider that the tab page it is on and thus doesn't think it needs a scrollbar.
Also, do you have the latest service release?
How to get the latest service release - Infragistics Community
I download the service release (2187) and verified that this is the version in the References for UltraGrid (via Reflector) Version 8.2.20082.2187.
Undocked, docked - it doesn't matter. No horizontal scrollbar.
Hm, I'm at a loss, then. Can you post a small sample project demonstrating the issue so I can take a look?
I've attached a sample illustrating the issue.
Thanks for your help.
I ran your sample and when I follow the instructions, I see a horizontal scrollbar in the grid. It's disabled, because you have AutoFitStyle turned on. So the horizontal scrollbar is unneccessary, but it is showing up for me.
Perhaps you are using an old version and need to get the latest service release. I tested with the latest service release of v8.2.