grid GetColumnImageList

Started by johnM, August 04, 2011, 10:46:52 AM

Previous topic - Next topic

johnM

my grid has 2 column header images that i toggle between, index 0 and 1
when i change a column header image to index 1 and call dcl_Control_GetColumnImageList
it returns all 0's when one column should be a 1
if i use dcl_Grid_GetColumnImage to check that column image it returns 1 (as it should)

owenwengerd

The ColumnImageList property is currently implemented as a design-time only property that is used to create the grid, then ignored for the remainder of the grid's lifetime. This could be changed, but it would take some work.
Owen Wengerd (Outside The Box) / ManuSoft

johnM

that would be a good addition when ever it can happen
but for now i used this to get the info (incase any one else has the same question)
Code (autolisp) Select
(setq climg '());_current image list
(setq cnt 0)
(repeat (dcl_Grid_GetColumnCount QD_ELE1_ELE1_Grid1)
(setq climg (cons (dcl_Grid_GetColumnImage QD_ELE1_ELE1_Grid1 cnt)climg))
(setq cnt (1+ cnt))
);_repeat
(setq climg (reverse climg));_flip old list


thanks for the quick responce