Atozed Forums
IWjQDBGrid column auto width - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (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: IWjQDBGrid column auto width (/thread-2727.html)



IWjQDBGrid column auto width - Comograma - 05-02-2022

I have a IWjQDBGrid component with goAutoGridWidth and goAutoColumnWidth set to True but this doesn't work.
How can I put this to work? Either I have a column with 2 or 3 characters and a column too large or a string with several characters that do wrap when it shouldn't, because too much width is wasted with the short column.


RE: IWjQDBGrid column auto width - Alexandre Machado - 05-18-2022

goAutoGridWidth means that the grid will be resized. In general this is a bad idea.

goAutoColumnWidth means that that the columns will be resized to fit the available grid width without an horizontal scroll bar, proportionally to the width that they have during design time.

Setting goAutoGridWidth = False and goAutoColumnWidth = True using the IWjQGrid on Github gives me precise results:

   


RE: IWjQDBGrid column auto width - Comograma - 05-23-2022

(05-18-2022, 12:31 AM)Alexandre Machado Wrote: goAutoGridWidth means that the grid will be resized. In general this is a bad idea.

goAutoColumnWidth means that that the columns will be resized to fit the available grid width without an horizontal scroll bar, proportionally to the width that they have during design time.

Setting goAutoGridWidth = False and goAutoColumnWidth = True using the IWjQGrid on Github gives me precise results:

Is this the link?
https://github.com/free-jqgrid/jqGrid


RE: IWjQDBGrid column auto width - Alexandre Machado - 05-27-2022

No, when I said github I meant the https://github.com/Atozed/IntraWeb/tree/master/15/Delphi/jQGrid

demo. If you set the properties as I mentioned, the result is exactly what you expect