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. Using a propertyGrid control

Using a propertyGrid control

Scheduled Pinned Locked Moved C#
helpcssquestion
1 Posts 1 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.
  • G Offline
    G Offline
    gapfulgence
    wrote on last edited by
    #1

    Hi, I'm struggling with a property grid control. Here is what I do: - I display properties associated to a specific object in the property view. - For each property, I use a specific editor and allows value to be changed in another form. Each property has access to a specific editor which inherits from 'UITypeEditor'. - In the EditValue method of my editor, I call my form using the 'ShowDialog' method. Here is the beginning of my EditValue method: public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { string startingPropertyValue = null; // The value that the property had before we display the modal form. PropertySpec currentPropertySpec = null; if (context != null && context.Instance != null && provider != null) //if (provider != null) { editorService = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService; } My problem is that I'm not able to retrieve the values selected in my second form and display them for each selected property. Can you help me please ? Thanks. Pat.

    p.f. Goudjo-Ako Bringing our energy together !

    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