LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

tables & VAL_COLUMN mode and disappearing grid lines

I have managed to create a table and populate it with data in CVI 8.0. I started with a single cell (with horozontal and vertical grid visible) and added a number of rows and columns. So far so good. I have managed to set the column title and column width by first setting  ATTR_USE_LABEL_TEXT, 1 and   ATTR_SIZE_MODE, VAL_USE_EXPLICIT_SIZE. However, somewhere in the process I have managed to get rid of the grid lines (horizontal only)  even though "Show hor grid" and "Show vert grid" are ticked when editing a cell. It might have something to do with VAL_COLUMN mode and VAL_ROW mode (message that appears when changes are made to rows or columns in the uir) but I can not figure out what it means and also I can not determine how to set this in the code.
 
The grid lines were visible initially but after having made some changes to the code they are gone not visible.
 
Any help would be appreciated.
 
Regards

Erik
 
 
0 Kudos
Message 1 of 2
(3,025 Views)
There are four main attributes to make sure are set correctly.

ATTR_HORIZONTAL_GRID_VISIBLE - Inside the control, not the cell
ATTR_HORIZONTAL_GRID_VISIBLE - Inside the cell, not the control

and the same but VERTICAL instead of HORIZONTAL.

Also be sure the color (another attribute) is set to something other than the background color. These options alone should be able to get the desired results, if this is still not working, please post some example code for what exactly you are changing.

Brandon Vasquez
Applications Engineer
National Instruments



Brandon Vasquez | Software Engineer | Integration Services | National Instruments
0 Kudos
Message 2 of 2
(3,005 Views)