I am trying to create a data grid that contains three or more rows of informations like (Name, Units, Comments). Logically the data can have any length but the first three rows must always be seen on top of the grid no matter if the user scrolls down the grid. To do so I have created two grids and place them in a vertical wx.BoxSizer like in the image noScrollBars.png attached
But when the number of columns fits no more in the screen a Horizontal scroll bars shows up which is a problem for the first grid like in the image wirhScrollBars.png attached.
I have tried all possible ways to eliminate the Horizontal scroll bar of the first grid but none worked.
I am afraid this is not possible because how the grid works is that it recalculates the size and reset the scrollbars no matter what the style, the margin or the scrollbars width are set by the programmer.
I would appreciate any help, maybe there is a way to create a grid with multiple horizontal label rows or another way to fix this issue
Hi,
I am trying to create a data grid that contains three or more rows of
informations like (Name, Units, Comments). Logically the data can have
any length but the first three rows must always be seen on top of the
grid no matter if the user scrolls down the grid. To do so I have
created two grids and place them in a vertical wx.BoxSizer like in the
image noScrollBars.png attached
But when the number of columns fits no more in the screen a Horizontal
scroll bars shows up which is a problem for the first grid like in the
image wirhScrollBars.png attached.
I have tried all possible ways to eliminate the Horizontal scroll bar of
the first grid but none worked.
I am afraid this is not possible because how the grid works is that it
recalculates the size and reset the scrollbars no matter what the style,
the margin or the scrollbars width are set by the programmer.
Correct. The grid will recalculate sizes and adjust the scrollbars whenever things like resizing the window or resizing columns or rows.
I would appreciate any help, maybe there is a way to create a grid with
multiple horizontal label rows or another way to fix this issue
This has come up before, and I seem to recall that somebody worked out a way to do it, but I don't remember how. Some more searching of the archives may find something about it.