Mitja, why do you want to let a ListView behave like a DataGridView?
Just use a DataGridView as I already suggested to you in a previous thread.
A programmer must be able to leave a programming idea when it leads to too many complications and (how hard it may seem) start from scratch all over again. I did, there are many others...
Thx for convincing me to use the dgw. I was thinking for 2 days what to do, or to stay on ListView or to go on dgw. Now I finally made my mind and I will change it right now.
btw, can I ask you how to get row and column indexes in DGW?
DGV is a large class, it took me some time to get used to it, but once you do it is "a piece of cake".
You can acces a cell in a DGV like this:
this.dataGridView1.Rows[rowIndex].Cells[colIndex].Value = "Avalue";
or like this:
this.dataGridView1[colIndex, rowIndex].Value = "Avalue";
If you look here at DaniWeb you may find more elaborate examples, or google. Succes!
Sorry, but this is not what I want. I would like to get row and column indexes when I click on a cell. Lets say that before clicking I do not know the indexes. And after I double click (or maybe any other event), I need to get index for row and index for column.
Because I need to save this two indexes for each cell into database, if I want to show the value right there, in the same cell where I entered it.
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World ...
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...