By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,589 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

listview + incell editing

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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

"Won Lee" <no****@nospam.com> wrote in message
news:OL**************@TK2MSFTNGP11.phx.gbl...
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

Nov 21 '05 #2

P: n/a
One Handed Man ( OHM - Terry Burns ) wrote:
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?
Nov 21 '05 #3

P: n/a
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

"Won Lee" <no****@nospam.com> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
One Handed Man ( OHM - Terry Burns ) wrote:
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?

Nov 21 '05 #4

P: n/a
One Handed Man ( OHM - Terry Burns ) wrote:
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.
Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.