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
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.
I've attached a sample illustrating the issue.
Thanks for your help.
Hi Lars,
Hm, I'm at a loss, then. Can you post a small sample project demonstrating the issue so I can take a look?
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.
Yes, I tried undocking the grid in the TableLayoutPanel, ran the app, sized the main window so I could see that the grid was undocked. The behavior unfortunately was the same - no horizontal scrollbars.
I am downloading the service release now.