Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Summing Column In QM Grid
#5
Hi Gintaras,
I am taking a big deep breath and jumping into QM_Grid dialogs. They are very cool and I actually have come along much farther than I thought. I have been able to reverse engineer your example dlg_QM_Grid to be able to import a large excel spreadsheet with 14 columns and over a hundred rows. I have been able to assign checkboxes, combo boxes and save the changes back into my excel (csv) file using the ICsv functions.


My questions at this time are:

1) There seems to be a bug in the gridNotify function. When you attempt to add an input str s as the setwintext of cd.hctrl, there is an error RT: "window not"
However, the same step (i.e. setwintext(cd.hctrl)) works for

Function gridNotify
Code:
Copy      Help
,case LVN_QG_BUTTONCLICK:
,,out "button: item=%i subitem=%i text=%s" cd.item cd.subitem cd.txt
,,if(OpenSaveDialog(0 s))
,,,s.setwintext(cd.hctrl)

2) Is there a way to have different combo box choices for different columns. When I change the

Function gridNotify
Code:
Copy      Help
,case LVN_QG_COMBOFILL
,,out "combo fill: item=%i subitem=%i" cd.item cd.subitem
,,TO_CBFill cd.hcb "one[]two[]show inp"

to CBFill choices of my choosing, it makes those the options for all columns with LVM_QG_SETCOLUMNTYPE 7 QG_COMBO as its type

3) This might be asking too much but Is there an easy way to
- sort to sort columns, e.g. alphabetize by clicking on the upper bar
- filter - e.g. by one of the drop down choices in a CB Box for that column
- Search the grid
- select multiple cell contents at once (adjacent single cells in a column, whole rows, adjacent or not)

Thanks so much - even if the answer is that these aren't supported.

Stuart


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)