Page 16 of 21

Re: HMG 3.4.4

Posted: Thu Jan 10, 2019 3:20 pm
by mol
I found strange behavior of GRID control.
I'm using virtual grid, with width almost equal to sum of column widths (+10 pixels)
When I edit inner columns, everything works ok, when I wat to edit last column - there is no possibility to enter edit mode.
Whe I've increased grid width, editing last column is possible.
I've lost few hours yesterday to find the reason of impossibility of editing cells.

Is it the way to improve grid to exclude such situations?

Re: HMG 3.4.4

Posted: Wed Jan 16, 2019 3:20 pm
by mol
I want to ask if it's the way to change color of internal lines in grid? Now they are grey, my client wants to change them to black...

Re: HMG 3.4.4

Posted: Sat Jan 19, 2019 5:00 pm
by mol
Nobody knows how to chane color of inner lines of grid???

Re: HMG 3.4.4

Posted: Sat Jan 19, 2019 5:51 pm
by serge_girard
Hi Marek,

I would also like to know!

Serge

Re: HMG 3.4.4

Posted: Sat Jan 19, 2019 7:05 pm
by edk
I have not found in the ListView documentation (Grid is built on this) how to change the color of the grid lines. https://docs.microsoft.com/en-us/window ... nce-macros

Re: HMG 3.4.4

Posted: Sat Jan 19, 2019 9:32 pm
by mol
Maybe someone knows undocumented way...
If lines have colors, it must be the way to set others

Re: HMG 3.4.4

Posted: Sun Jan 20, 2019 9:10 am
by serge_girard
Maybe Claudio can show the way?

Serge

Re: HMG 3.4.4

Posted: Sun Jan 20, 2019 11:29 am
by edk
mol wrote: Sat Jan 19, 2019 9:32 pm Maybe someone knows undocumented way...
If lines have colors, it must be the way to set others
Probably not so obvious. Themes change affects gridlines color.
In other forums, they describe the solution consisting in additional lines drawing: http://www.vbforums.com/showthread.php? ... -thickness
Such a solution would have to be associated with changes in grid sources and I do not know if it will slow down its operation significantly. There may also be problems when scrolling the grid.

Re: HMG 3.4.4

Posted: Sun Jan 20, 2019 8:42 pm
by mol
Is it the way to synchronise horizontal scrolling of two grids?
I have one grid containing multiline header and second grid upon first containing report. When the report is wider than screen, user must scroll it.

Second question
We have LOCKCOLUMNS in GRID control. Is it the way to realize something like LOCKROWS?

Third question
Can we create GRID with multiline header?

Fourth question

How to hide scrollbars in grid?

Re: HMG 3.4.4

Posted: Tue Jan 22, 2019 1:58 pm
by edk
mol wrote: Sun Jan 20, 2019 8:42 pm Is it the way to synchronise horizontal scrolling of two grids?
Similar topic: http://hmgforum.com/viewtopic.php?p=40803#p40803
mol wrote: Sun Jan 20, 2019 8:42 pm How to hide scrollbars in grid?
http://hmgforum.com/viewtopic.php?p=53998#p53998