Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Icon in 1st column of grid if data retrieved from csv file
#1
Grid data are saved in file using :
Quote:g.ToCsv(sl "|" 1|2)
sl.setfile(sfil)

Grid data are then retrieved using :
Quote: g.FromCsv(sl "|" 1)

I would appreciate it if you could kindly advise on the way to add an icon from imagelist in column 0 (first column).
#2
I used the following routine successfully. Any comment is still welcome :
Macro temp17
Code:
Copy      Help
,,case LVN_GETDISPINFOW
,,NMLVDISPINFOW& ddi=+nh
,,LVITEMW& u=ddi.item
;,,out F"{u.iItem} {u.iSubItem}"
,,if u.iSubItem=0 ;; Select column to show icon here
,,,u.mask|LVIF_IMAGE
,,,u.iImage=3;;col2[u.iItem]        


Forum Jump:


Users browsing this thread: 1 Guest(s)