I have downloaded Virtual TreeView at http://virtualtreeview.delphi-gems.com/VT.php
Now I like to create an simple application that works like this.
I want the treeview to look like an listview where I can edit the cells. So:
When I start the application I want the cursor to stay in the first cell (top left cell) in edit mode. When I have typed an article number in that cell and hit enter I want a Query to be done.
(select * from articles)
And a object created and added to the Data pointer of the TreeView
ThisArticle.description := qry.FieldByName('descripti
ThisArticle.Price := qry.FieldByName('price');
Then I want the Cell number 2 to contain the descripton, the cell nr 3 the number 1, and the Cell 4 the price and the cell 5 the Quantity * the Price.
Now I want the cursor to be moved to cell 3 in edit mode so I can change the Quantity. When I hit enter I want it to go to
the first cell in the next row and stand in edit mode to do the same again.
The problem is that I can't find out how to do this.
(How to place the cursor in the right cell and set it in edit mode is the most important problem that I have not find out how to do and how to add the TArticle to the data pointer and how to access it)
Can someone help me out? I will give you more points if you need.