473,506 Members | 11,491 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ListView that allows the user to edit it contents???

Hello,

how can I create a ListView that allows to user to edit its columns contents?
Thx.
Bob Rock
Nov 16 '05 #1
2 27220
Hi Bob,
Listview has a LabelEdit property; when you set it "true", then in an event handler you can call Listview.Items[x].BeginEdit(), and edit an item. As an example, you can handle ListView.DoubleClick event and call BeginEdit right there:

private void Form1_Load(object sender, System.EventArgs e)
{
listView1.LabelEdit = true;
}

private void listView1_DoubleClick(object sender, System.EventArgs e)
{
if(this.listView1.SelectedItems.Count==1)
{
this.listView1.SelectedItems[0].BeginEdit();
}
}

I hope this will help you,
Good Luck
-------------
Dincer Ozturan
"Bob Rock" wrote:
Hello,

how can I create a ListView that allows to user to edit its columns contents?
Thx.
Bob Rock

Nov 16 '05 #2
bob
you could try this:
http://www.codeproject.com/cs/miscct...ridcontrol.asp
"Dincer Ozturan" <Di***********@discussions.microsoft.com> wrote in message news:<53**********************************@microso ft.com>...
Hi Bob,
Listview has a LabelEdit property; when you set it "true", then in an event handler you can call Listview.Items[x].BeginEdit(), and edit an item. As an example, you can handle ListView.DoubleClick event and call BeginEdit right there:

private void Form1_Load(object sender, System.EventArgs e)
{
listView1.LabelEdit = true;
}

private void listView1_DoubleClick(object sender, System.EventArgs e)
{
if(this.listView1.SelectedItems.Count==1)
{
this.listView1.SelectedItems[0].BeginEdit();
}
}

I hope this will help you,
Good Luck
-------------
Dincer Ozturan
"Bob Rock" wrote:
Hello,

how can I create a ListView that allows to user to edit its columns contents?
Thx.
Bob Rock

Nov 16 '05 #3

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

Similar topics

1
1335
by: Bob Murdoch | last post by:
We have an asp application that creates reports from a database. The managers would like to create the report, view the results, add a comment, and save the report so that he can send a link to...
6
4615
by: VM | last post by:
How can I fill up a listview with text file contents? My listview has two columns and the first column fills up with a while loop: while (myString != null) { myString = sr.Readline();...
1
1807
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...
1
1322
by: ad | last post by:
I use DataGrid in my web application for editing data. But the DataGrid can edit one row at a time. How can I let the user edit multiple rows at a time?
1
1212
by: rallard | last post by:
After the following subroutine executes, my listview shows a scroll bar on the right, but it is otherwise blank. I've checked for things like locked=false, visable=true, font color same as...
0
1389
by: mmueller | last post by:
I am new to reporting services 2005 (reporting in Access for years and older versions of Reporting Services from time to time) and this is probably a dumb question... but I have no internal resources...
0
1001
by: kaibest | last post by:
i have one ListView with 5 rows and 100+ collums. i need to do kind of search system... i have one text field, when i start type something i want listView to update depending on what i type... i'm...
2
1188
by: hemapooja | last post by:
Hi, I am using vb.Net web application. I am getting the error of system.io. ioexception. The process can't access the file because it is being usrd by another process. when file is opened or...
6
1698
by: willnt | last post by:
Hello, I've been searching for a solution for this issue everywhere but I couldn't find anything that would work 100% for this. I'm trying to create a javascript that allows the user to edit and...
1
25931
by: Chuck Beck | last post by:
I am creating a database-driven Web page to display member information for an organization to which I belong. I want to allow members to edit/modify most of the information for their individual...
0
7220
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
7308
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7371
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
7023
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...
1
5037
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
4702
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
3188
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...
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
757
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.