Q:
I use the treegrid in many parts off my programs , and works fine , but my users need to move the list items up and down , like old listbox in vfp with te property Movebars = .t., Linaja have some like this , or whats the beast way to do this.
A:
The TreeGrid does not currently have the option to move the TreeItems up and down in the grid. It does have a SortingEnabled property, that you can set to .T. (true) to allow the users to click on the column header(s) to sort by that column.
Also the addListItem() and setListItem() methods allow you to specify the row/column position - maybe those could be used.
The other option is to clear and then load the items in the corrected order.
Q:
I try to use the Setlistitem but I have a Data type mismatch in parameter list.
here is :
Code:
m_gridrow = Lianja.getelementByID("productos_cot")
m_gridrow.setListItem(1, 1,"fdsdfs|232|23|34|34|34")
results:
Code:
**** Lianja error ****
m_gridrow.setListItem(1, 1,"fdsdfs|232|23|34|34|34")
^
Data type mismatch in parameter list
A:
The parameter order is:
Code:
caption as Character[, row as Numeric[, column as Numeric]]
All topics in [Answers] alphabetically:http://www.lianja.com/community/show...ll=1#post12352
Bookmarks