473,503 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

listview + incell editing

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
4 1852
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
21200
by: John Lauwers | last post by:
I know you can edit the first column of the listview control, is there a way to edit the second and/or the other columns? greets John
0
2106
by: Eric Hohnbaum | last post by:
I am working on a form where the user will do a pretty fair bit of entry and editing. The look of the sceeen the analyst gave me makes me think of a list. A ListView is the only list class that I...
3
9285
by: MikeY | last post by:
Hopefully someone can help me on this. I am using C#, making Windows forms. I have created a listView with checkbox's. I have enabled the checkboxes under the properties, and all the data,...
2
2979
by: David Anderson | last post by:
I'm working on a Windows app that has a ListView containing a bunch of items. When the user clicks on an item, the app displays the item'd details. The user then has the opportunity to edit these...
0
1519
by: Raphael | last post by:
Hi Everyone, I need some help in Editing and Deleting a record from a listview. Example- I have a list view that is populated from an Access Database, I will like users to click on any record in...
1
2846
by: Chris | last post by:
Hi all, I posted the following in microsoft.public.dotnet.framework.windowsforms but it seems that group has little traffic. Hi all, I have a listview box which is populated from methods of...
1
7706
by: The Confessor | last post by:
I currently have a listbox in my program which I populate with data from a random access file as follows: For T = 1 To HighestPointID FileGet(1, Point(T), T) ListBox_Point.Items.Add(T & " Lat:...
1
2656
by: a | last post by:
Hi I would like to add some additional custom features to the listview, like cell editing. The created object will be added to the form as part of the GUI, and it should be able to handle...
2
3351
by: =?Utf-8?B?UGhpbGlw?= | last post by:
I am attempting to insert a simple record with LinqDataSource from a ListView, however I always get a message saying "....LinqDataSource 'dataSource' has no values to insert. Check that the...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4689
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.