Hi,
I'm trying to implement fixed headers on an ultrawingrid.
In Initialise layout I've added the line:
e.Layout.UseFixedHeaders = true
My column definitions have header.fixed = true where appropriate.
When I run the application however, the horizontal scrollbar shrinks instantly, and dragging it has no effect on the ultragrid. Any ideas on what I've missed?
Thanks
Jim
Jim,
The only thing that comes to mind is that the total width of all of the fixed columns is greater than or equal to the width of the grid, so scrolling will not do anything (by the nature of fixed columns).
-Matt
Thanks for the reply,
The columns are all round the 100 units mark, with the left two visible columns being fixed. The total scroll bar length is considerable, with a tiny selector. If I take the e.layout.UsedFixedHeaders command out, the scroll bar returns to approximately 2/3 the total length, and dragging it moves the datagrid as expected. The vertical scroll bar behaves normally.
If the left two columns' total width are smaller than the width available to the grid and you're seeing this problem, I'm not sure what could be causing it. If you can reproduce it in a small sample, you should submit the issue to Developer Support, or if you can reproduce it with a few lines of code, I can take a look at it here.
Hi Matt.
There's a lot of code involved, but I'll copy the relevant snippets out and submit it through developer support.