listview + incell editing

  • Thread starter Thread starter Won Lee
  • Start date Start date
W

Won Lee

Hello,

I created a listview. I want the user to be able to edit the cells of
the listview. I have LableEdit set to true but I can't seem to be able
to select and edit a sell. Activation is set to standard.

I cut and pasted the example in the help files labeld ListView.LableEdit
Property and that doesn't work either!

Any help? Thanks.

Won
 
Remember to BeginEdit for the focused Item

MyListView.FocusedItem.BeginEdit()


--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 
One said:
Remember to BeginEdit for the focused Item

MyListView.FocusedItem.BeginEdit()

I want the user to edit the item - not the subitem - within the
application at runtime. Although I'm not familiar with the BeginEdit
(I'm going to read up on it now) it seems to be something that I would
use if I had the program changing the contents of the item of the ListView.

OK just read up on it. Do I need to put this inside an event handler?
Maybe selectedItems?
 
yes, normally you would do something like put the code in the Double-Click
event and get the item from the X,Y co-ordinates.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 
One said:
yes, normally you would do something like put the code in the Double-Click
event and get the item from the X,Y co-ordinates.

I put in in the ListView1_SelectedIndexChanged.
I didn't have to use the x,y co-ordinates as it seems to know which item
is being edited. My only problem is that you have to hold down the
mouse button and press a button before it lets you edit it. I'll
figures something out. Thanks for setting me on the right direction though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top