listview mystery:)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • juli jul

    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 ***
  • Philip Hristov

    #2
    Re: listview mystery:)

    Hello,

    Check this out -


    Hope this help!

    Best,

    Philip.

    Comment

    • juli jul

      #3
      Re: listview mystery:)

      Hello,
      I checked but didn't find the solution,how can I do it?
      Thank you!



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

      Comment

      • Philip Hristov

        #4
        Re: listview mystery:)

        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.

        Comment

        • juli jul

          #5
          Re: listview mystery:)

          I didn't find this control? How can I add it? What its name?
          Thank you!



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

          Comment

          • Philip Hristov

            #6
            Re: listview mystery:)

            Juli,

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


            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.

            Comment

            • juli jul

              #7
              Re: listview mystery:)

              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 ***

              Comment

              • Philip Hristov

                #8
                Re: listview mystery:)

                OK. Load the .sln file in Visual Studio. Compile the
                ControlExtender Library. You will find the resulting
                ControlExtender Library.dll in the ControlExtender Library\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

                Comment

                • juli jul

                  #9
                  Re: listview mystery:)

                  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 ***

                  Comment

                  • Philip Hristov

                    #10
                    Re: listview mystery:)

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

                    Philip.

                    Comment

                    • juli jul

                      #11
                      Re: listview mystery:)


                      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 ***

                      Comment

                      • Philip Hristov

                        #12
                        Re: listview mystery:)

                        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.

                        Comment

                        • juli jul

                          #13
                          Re: listview mystery:)


                          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 ***

                          Comment

                          Working...