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. General Programming
  3. C#
  4. Radio buttons in PropertyGrid

Radio buttons in PropertyGrid

Scheduled Pinned Locked Moved C#
comgraphicsdesignsalesquestion
4 Posts 2 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.
  • L Offline
    L Offline
    lukeer
    wrote on last edited by
    #1

    Hi experts, a software I made provides the user with a PropertyGrid[^] to change certain values. Some of them are enum-based. Customer doesn't like to be forced to click twice: first to open the UITypeEditor[^], second to choose the value. Customer would rather want to have possible values constantly displayed as RadioButton[^]s. (See this illustration[^].) Is PropertyGrid that customizable to draw a property as something other than $PropertyName and $PropertyValue as one-line-texts? Is there some OwnerDraw possibility I didn't recognize? Is there a third-party control that supports that (this[^] looks nice but User still has to pull the editor down)?

    Ciao, luker

    L 1 Reply Last reply
    0
    • L lukeer

      Hi experts, a software I made provides the user with a PropertyGrid[^] to change certain values. Some of them are enum-based. Customer doesn't like to be forced to click twice: first to open the UITypeEditor[^], second to choose the value. Customer would rather want to have possible values constantly displayed as RadioButton[^]s. (See this illustration[^].) Is PropertyGrid that customizable to draw a property as something other than $PropertyName and $PropertyValue as one-line-texts? Is there some OwnerDraw possibility I didn't recognize? Is there a third-party control that supports that (this[^] looks nice but User still has to pull the editor down)?

      Ciao, luker

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      lukeer wrote:

      Customer doesn't like to be forced to click twice

      There's an example on a fully custom inline editor in one of the CodeProject articles[^].

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      L 1 Reply Last reply
      0
      • L Lost User

        lukeer wrote:

        Customer doesn't like to be forced to click twice

        There's an example on a fully custom inline editor in one of the CodeProject articles[^].

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

        L Offline
        L Offline
        lukeer
        wrote on last edited by
        #3

        But it still shows a value as one line. At least I haven't found a way to create multi-line visualizations of multiple-choice options.

        Ciao, luker

        L 1 Reply Last reply
        0
        • L lukeer

          But it still shows a value as one line. At least I haven't found a way to create multi-line visualizations of multiple-choice options.

          Ciao, luker

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          lukeer wrote:

          But it still shows a value as one line.

          That's what the PropertyEditor dictates; one property per line. You can "unfold" some of the properties (try the Font property in a WinForm as example), but that's as close as it gets.

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

          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