listview mystery:)

J

juli jul

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!
 
P

Philip Hristov

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.
 
J

juli jul

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!
 
P

Philip Hristov

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
 
J

juli jul

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!
 
P

Philip Hristov

Why do not you see how this is done in the demo project which is placed
in the ExtenderTest folder?

Philip.
 
J

juli jul

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!
 
P

Philip Hristov

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.
 
J

juli jul

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top