How to get row and column index when I double click (or some other event) of a cell on a ListView?
Mitja Bonca
557
Nearly a Posting Maven
Recommended Answers
Jump to PostMitja, 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) …
Jump to PostDGV 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 …
All 6 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
Mitja Bonca
557
Nearly a Posting Maven
ddanbe
2,724
Professional Procrastinator
Featured Poster
Mitja Bonca
557
Nearly a Posting Maven
ddanbe
2,724
Professional Procrastinator
Featured Poster
Mitja Bonca
557
Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.