Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. UserControl

UserControl

Scheduled Pinned Locked Moved ASP.NET
question
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    danasegaranea
    wrote on last edited by
    #1

    Hi all, I am building a usercontrol .. When the user dragdrop the user control in the webform, i want to list the gridviewnames in a property of that user controll How can I ? Thanks in Advance Dana

    N M 2 Replies Last reply
    0
    • D danasegaranea

      Hi all, I am building a usercontrol .. When the user dragdrop the user control in the webform, i want to list the gridviewnames in a property of that user controll How can I ? Thanks in Advance Dana

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Just write a public property which exposes the required data. Property viewer will show it when you select that control.

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

      D 1 Reply Last reply
      0
      • D danasegaranea

        Hi all, I am building a usercontrol .. When the user dragdrop the user control in the webform, i want to list the gridviewnames in a property of that user controll How can I ? Thanks in Advance Dana

        M Offline
        M Offline
        Mogha Ritesh
        wrote on last edited by
        #3

        dofa

        1 Reply Last reply
        0
        • N N a v a n e e t h

          Just write a public property which exposes the required data. Property viewer will show it when you select that control.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          D Offline
          D Offline
          danasegaranea
          wrote on last edited by
          #4

          Thanks for the reply N a v a n e e t h If add a single value it displays the value How can I add a values like DropdownList ?

          N 1 Reply Last reply
          0
          • D danasegaranea

            Thanks for the reply N a v a n e e t h If add a single value it displays the value How can I add a values like DropdownList ?

            N Offline
            N Offline
            N a v a n e e t h
            wrote on last edited by
            #5

            danasegaranea wrote:

            How can I add a values like DropdownList ?

            I didn't get that. Do you want to display a dropdown list in the property grid ?

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

            D 1 Reply Last reply
            0
            • N N a v a n e e t h

              danasegaranea wrote:

              How can I add a values like DropdownList ?

              I didn't get that. Do you want to display a dropdown list in the property grid ?

              All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

              D Offline
              D Offline
              danasegaranea
              wrote on last edited by
              #6

              Yes Yes

              N 1 Reply Last reply
              0
              • D danasegaranea

                Yes Yes

                N Offline
                N Offline
                N a v a n e e t h
                wrote on last edited by
                #7

                Use a enum as your property signature. I believe dropdown will be displayed on the property grid then.

                public enum Sample
                {
                First,
                Second,
                Third
                }

                public Sample YourPropertyName
                {
                get; set;
                }

                All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

                D 1 Reply Last reply
                0
                • N N a v a n e e t h

                  Use a enum as your property signature. I believe dropdown will be displayed on the property grid then.

                  public enum Sample
                  {
                  First,
                  Second,
                  Third
                  }

                  public Sample YourPropertyName
                  {
                  get; set;
                  }

                  All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

                  D Offline
                  D Offline
                  danasegaranea
                  wrote on last edited by
                  #8

                  That works well Now I am trying to add the form gridview controls name inside the Enum ... May be a diffcult task ?

                  N 1 Reply Last reply
                  0
                  • D danasegaranea

                    That works well Now I am trying to add the form gridview controls name inside the Enum ... May be a diffcult task ?

                    N Offline
                    N Offline
                    N a v a n e e t h
                    wrote on last edited by
                    #9

                    danasegaranea wrote:

                    Now I am trying to add the form gridview controls name inside the Enum

                    It is done in other way. Check this[^]. In that article, I have shown how to edit collections through property editor. You can check and implement something similar.

                    All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups