473,473 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

listview mystery:)


Hello,
Maybe someone can tell me hoe can I do this:
I have 2 columns in my list but I want to edit the values that appear in
the secound column . I know that it's possible to edit only the first
column in listview but maybe I can change their indexes and somehow to
edit the secound column?
Thanks a lot!
*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #1
12 1133
Hello,

Check this out -
http://www.codeproject.com/cs/miscct...derlibrary.asp

Hope this help!

Best,

Philip.

Nov 17 '05 #2
Hello,
I checked but didn't find the solution,how can I do it?
Thank you!

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #3
Add the ListViewExEdit component extender. Configure it and you will be
able to edit any of the columns, did you see the sample they have
included?

Regards,

Philip.

Nov 17 '05 #4
I didn't find this control? How can I add it? What its name?
Thank you!

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #5
Juli,

First, you have to register in http://www.codeproject.com. Then
download the source files from here
http://www.codeproject.com/cs/miscct...derlibrary.asp

The ListViewExEdit is a custom control, the guys from CodeProject have
created it. You can download it (along with other useful components for
the listview) from the URL above. Do you know how to work with custom
controls and assemblies, do you?

Best,

Philip.

Nov 17 '05 #6
I already downloaded it but I don't know how to work with those ,if you
can explain to me how to do it - that will be gr8.
Thank you!

*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #7
OK. Load the .sln file in Visual Studio. Compile the
ControlExtenderLibrary. You will find the resulting
ControlExtenderLibrary.dll in the ControlExtenderLibrary\Bin folder. I
suggest you to place this dll in the place where you store your custom
assemblies. GAC is not an option now because this assembly is not
strongly named.

Now, in your project right-click on the toolbox palette,click the
Browse button and locate the assembly. Click OK and the custom controls
will be added into your General tab of the Toolbox.

Also, if you like to see the demo of how to use these controls - when
open the .sln file of the components compile and demo application.

Regards,

Philip

Nov 17 '05 #8
Thanks!
I did all that BUT after I added it to the toolbox and it even appears
on my form button I still can't edit the secound column?
I changed the properties of the listViewExEdit1 to be set to my list
view and added the columns with the names they appear on the original
listview and made the editable but still it's not working,why?

Thank you very much!

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #9
Why do not you see how this is done in the demo project which is placed
in the ExtenderTest folder?

Philip.

Nov 17 '05 #10

Hello,I did that but somehow there is no "connection" between the
listview and the listViewExEdit - maybe I need some command that forces
the listview to refer to the IsEditable command (I didn't find it in
example).
Maybe you could tell me how?
Thank you very much!

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #11
OK. Here is what you need to do:

1. Add ListView to the form.
2. Add ListViewExEdit.
3. Bind ListViewExEdit.Listview to the ListView.
4. Add the columns to the ListView.
5. Add ColumnSettings in the ListViewExEdit
6. Set isEditable to true to the columns you like to have editing
capabilities.
7. Voila!

Hope this works now.

Philip.

Nov 17 '05 #12

Hello,
I did all that : step by step but still can edit only the first column
of the listview.
Maybe there is something in the listview properties I should change?
Thank you very much for your help!

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #13

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

Similar topics

6
by: Anushya | last post by:
Hi I am using Listview and inherited listview control overriding WndProc & PreProcessMessage in ListView. I need this to customize listview to display only the page the user scrolls to. Since i...
0
by: Anushya | last post by:
Hi I am using Listview and inherited listview control overriding WndProc & PreProcessMessage in ListView. I need this to customize listview to display only the page the user scrolls to. Since i...
0
by: Steph. | last post by:
I use a ListView in a form to display Data from an SQL db. My problem is that I can fill the listview in less than a second when I show the form AFTER filling the listview, but I take 35...
0
by: keith | last post by:
In a ListView control (two columns), I added a few ListView items. ListView listview=new ListView(); listview.Parent=this; listview.View=View.Details; listview.Columns.Add...
7
by: Dave Y | last post by:
I am a newbie to C# and am having trouble trying to override a ListView property method. I have created a new class derived from the Forms.Listview and I cannot figure out the syntax to override...
7
by: BobAchgill | last post by:
I am trying to decide which of these controls to use to implement letting my user select a full row from MyList. The MyList has several columns which would be nice to sort by at run time. The...
2
by: Peter | last post by:
Hi, I have a problem with Listview using checkboxes. If i check items by code BEFORE the form is shown the Listview.Items are confused during the ItemChecked Event !!! After showing the...
4
by: Brian Gaze | last post by:
I have created a ListView control and have bound this to a datasource. Within the ItemTemplate of the ListView I have added another ListViewControl which is databound in the code behind. The idea...
10
by: julietbrown | last post by:
On first reading you could stop at ** and resume at the later ** as I think the problem must be in the part before the first **! Field X on Form A is the key field for another table T. User...
0
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...
1
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
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
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.