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