Submitted by WayneK on 2016/04/08 17:23
Sorry for what is a basic question but I haven't been able to figure out what I'm doing wrong (and ancouldn't find answer in help).
 
How do I control what columns are displayed in the grid?  I thought that I all I had to do was check "Shown" in the field properties, and that column would be added to the grid, and displayed every time the grid is opened.  I've been adding columns this way, then InfoQube removes them and I can't figure out why.
 
1) I add a column to the grid using field properties.
2) I go to "manage grids" to adjust the setting for column widths
3) I return to the grid, and InfoQube has removed all the columns I just added.
 
Bonus problem: how do I get column widths to remain fixed?  I have "auto-size width" turned off but InfoQube keeps re-sizing columns and cutting off the text in the headers.
 
Wayne

Comments

Wayne, I would update to the latest version and see if the problem still occurs.  There was an issue, I think it was with the current version before a, b or c, where certain grid settings were not being remembered.
 
In addition to the method you are using, you can right click on an existing column (right within a grid itself), and select "add/remove columns", and add and remove them that way, and see if they stick.
 
As far as column widths, I've never done anything to have them remembered, so that too might just be an issue with your version.  Not sure though.

WayneK

2016/04/08 18:13

In reply to by David_H

I updated to 73c.  Problem persists.  If I make any change in grid settings, all the columns I added disappear.
 
Bonus problem #2:  dragging columns to change positions has never worked well for me and I see the problem is the same in the latest version.  If I click and drag a column, the double green arrows should appear to show the target location for the column.  These arrows fail to appear about 1/3 of the time.  I'm left dragging the column with no place to put it into a new location.  Does anyone else run into this?  Is there a keyboard shortcut that's more reliable?
 
Wayne
Win 7, 64 bit Cyberpower Model 1, C Series (2011) 16 GB RAM
27" Samsung S27A350H, 24" ASUS VW242H  1920x1080

[quote]I go to "manage grids" to adjust the setting for column width[/quote]
 
p.s. Not sure where you do that, but all I ever do is manually adjust a column width in the grid itself and it's remembered.

[quote=WayneK]
 
1) I add a column to the grid using field properties.
2) I go to "manage grids" to adjust the setting for column widths
3) I return to the grid, and InfoQube has removed all the columns I just added.
 
[/quote]
 
I tried adding columns using your method 1 and it works and it sticks.  Have you tried another method all on its own to see if you encounter the problem.  For instance, if you right click on a column in a grid and add some columns, doing nothing else, do you lose the settings after you close and reopen the grid/and or IQ?

ethanrox

2016/04/08 18:47

In reply to by David_H

[quote=David_H]
 
I tried adding columns using your method 1 and it works and it sticks. 
[/quote]
 
Same here v72.
I normally add columns via drag and drop from the Properties Pane. There is a special form I made for the fields I most often use.
For me fields disappear if I have not saved the grid after the Drag & Drop.

WayneK

2016/04/08 19:27

In reply to by ethanrox

ethanrox,
 
That did it.  Didn't realize you have to save the grid like that. 
 
I appreciate your and David's help.
 
Wayne
Win 7, 64 bit Cyberpower Model 1, C Series (2011) 16 GB RAM
27" Samsung S27A350H, 24" ASUS VW242H  1920x1080

David_H

2016/04/08 19:34

In reply to by WayneK

Wayne, normally you do not need to save a grid, well, at least I never do.  I'm not sure if the need to select "save grid" is based on a setting under Tools>Options, or perhaps some other scenario, but obviously you've uncovered one.  But as an example, when I add columns per your method, I was not saving the grid.
 
Maybe Pierre can elaborate.

ethanrox

2016/04/08 20:00

In reply to by David_H

Yes, I can reproduce this as well.
I am saving the grid just in case, because I've run in a similar issue before where fields disappeared.

Pierre_Admin

2016/04/13 01:32

In reply to by David_H

No need to save grid. Columns are saved when the grid is closed.
 
@Wayne: If you can reproduce the issue with a sample IQBase, please provide the exact steps and I'll try to reproduce it.
 
re Moving columns: The command is Columns > Move Left / Right. You can assign a shortcut if you want.
 
Pierre_Admin
IQ Designer
 

ethanrox

2016/04/13 06:47

In reply to by Pierre_Admin

But there are still saved when the Grid is saved, right?
In v72 if I don't save the grid, and restart IQ without closing the grids I made changes to, those changes are lost.

ethanrox

2016/04/08 20:01

In reply to by WayneK

Glad it worked for you :)