Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add "attributes" to item in ListView

Status
Not open for further replies.

MDA

Technical User
Jan 16, 2001
243
US
Hi,

I have a listview control with three columns. The first two columns are populated from a SQL table. In the third column I am trying to do the following:

1. User clicks on a row in third column.
2. A Dialog box opens up "used to add an attribute to the item in the listview"
3. Once the data is entered in the dialog box, it is added to the third column in the listview for the selected item.


My first challenge is trying to find a way to be able to click or right click on a particular list item and open a dialog box, is this possible?

If anyone has an idea if/how these tasks are possible, please let me know.

Thanks,
MDA
 
use the click event of the listview and then

listview.selecteditems(0) to get the items you want

Christiaan Baes
Belgium

What a wonderfull world - Louis armstrong
 
Q: How can I stop a ListView from repainting the whole list when I modify a single Item (subitem)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top