Atozed Forums
Set column width in IWjQDBGrid - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Set column width in IWjQDBGrid (/thread-2627.html)



Set column width in IWjQDBGrid - Lenfors - 01-18-2022

Hello!

I'm having problems with the IWjQDBGrid. I want to set the column widths to absolute values but they keep changing depending on the width of the control.

I set the alignment of the control to alTop.
I'w set the width property of all my Columns to desired width.
I uncheck the Options.goAutoColumnWidth option.

When i then show the form all column widths are adjusted so they all fit in the grid without showing any vertical scrollbar.

I now can manually change tho column widths and if needed the vertical scrollbar appeares (nice feature).

I also cant fins any way to set the column widths programatically!? 
The option IWjQDBGrid.Columns[x].Width is not available!?

Best regards, Mikael


RE: Set column width in IWjQDBGrid - Lenfors - 01-25-2022

Anyone who can help me with this? How do I programatically set the solumn widths in a IWjQDBGrid!

One week and not a single reply. Isn't it possible to do?

Best regards, Mikael


RE: Set column width in IWjQDBGrid - Alexandre Machado - 02-14-2022

If you align your jQGrid (alTop, alBottom, etc) your columns will also be resized when the grid is resized. That's how the jQGrid behaves by design.

I'll create a change request to add this feature in the next release.