Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
Missing horizontal scrollbar
posted

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;

            e.Layout.Bands[0].Columns["Description"].Header.Caption = "Description";

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

What am I missing here?
Thanks, Lars

Parents Reply Children
No Data