473,378 Members | 1,411 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Edit Listview item

Hi all! I have problem trying to edit the item in listview. When I set
LabelEdit to True, I can only edit the first column's item. How about
editing another column's item?? Thanks in advance!

Stanley

Nov 21 '05 #1
6 4546
"Stanley" <xs******@gmail.com> schrieb:
Hi all! I have problem trying to edit the item in listview. When I set
LabelEdit to True, I can only edit the first column's item. How about
editing another column's item??


That's not supported out of the box.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2
"Stanley" <xs******@gmail.com> schrieb
Hi all! I have problem trying to edit the item in listview. When I
set LabelEdit to True, I can only edit the first column's item. How
about editing another column's item?? Thanks in advance!


Not supported by the listview. Maybe a datagrid (which is pretty different)
is the appropriate control.

Armin

Nov 21 '05 #3
It isn't that difficult to implement this kind of behaviour yourself... if
you derive a new class from listview, handle mouse clicks to popup an edit
box across the right row/column you can more or less get it working right.

"Stanley" <xs******@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hi all! I have problem trying to edit the item in listview. When I set
LabelEdit to True, I can only edit the first column's item. How about
editing another column's item?? Thanks in advance!

Stanley

Nov 21 '05 #4
Thanks for reply, but I don't think I can implement class from
listview. I'm not good enough! :(

Nov 21 '05 #5
Stanley,

Just take a datagrid.

(You can create your underlaying datagrid for that, here is one sample,
however in some samples on our site is used the northwind database, in
others is created tables inside the samples.)

Here is a short one with a created datatable. However there is more.

http://www.windowsformsdatagridhelp....3-a3539697edbd

I hope this helps,

Cor
Nov 21 '05 #6
Thanks all for that!

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
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
2
by: Anushya devi | last post by:
Hi All I used listview and tried to update it by using Addrange. When the number of items is less, it works fine.. But I need to update nearly 200,000 items and it hangs. Also i need to add...
2
by: Bob Rock | last post by:
Hello, how can I create a ListView that allows to user to edit its columns contents? Thx. Bob Rock
1
by: Steve | last post by:
I have a listview control that doesn't initialize the size of the edit field properly when an item's label is being edited. For some dumb reason it's often much smaller than the actual label I...
9
by: Devron Blatchford | last post by:
Hi there, Just wondering if I change the back and fore colour of a listview item when the mouse hovers over it? I want to overide the default windows colour. Can someone please tell me how to...
1
by: Jason Huang | last post by:
Hi, In my C# windows form project, I have a ListView mylvw. I set the property LabelEdit to true, and I can edit the Item in the mylvw. But what I want to do is not just edit the ListView Item,...
0
by: Gary Brown | last post by:
Hi, I have implemented Cut item in a ListView with Ctl-X as the shortcut key. Unfortunately this supercedes Ctl-X when used to edit a label. What is the easiest way around this? The Ctl-X is...
6
by: Brandon McCombs | last post by:
Hello, I have a form that contains a listview on the left side and a column of buttons on the right side. Only some of the buttons do I want enabled all the time. The other buttons should be...
0
by: DJOuk | last post by:
Posted this on Asp.Net, seems to be a hard problem, I still can't work it out I have a edit button, this works fine, until I add the code that prevents the edit button from being seen by users who...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.