[CLOSED] Clear PropertyGrid

  1. #1

    [CLOSED] Clear PropertyGrid

    how can I clear the PropertyGrid on directevent?
    I Tried to do Source.Remove(item), Source.RemoveAt(index)
    Source.Clear();
    I populate my PropertyGrid when the user selects an item in the combobox.
    My PropertyGrid is loaded dynamically
    Last edited by Daniil; Jun 20, 2011 at 9:05 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I can suggest this way:
    this.PropertyGrid1.Call("getStore().removeAll");
  3. #3
    Another way, probably, more clear is using .SetSource().
    PropertyGridParameterCollection source = new PropertyGridParameterCollection();
    // populating
    this.PropertyGrid1.SetSource(source);
  4. #4
    Quote Originally Posted by Daniil View Post
    Another way, probably, more clear is using .SetSource().
    PropertyGridParameterCollection source = new PropertyGridParameterCollection();
    // populating
    this.PropertyGrid1.SetSource(source);
    thanks Daniil.
    Works for me ...
  5. #5
    Hooooooooooooooooooooooooooooooooooooooooooooo!!!!

    I spent 4 hours trying to clean the content of the propertygrid !!!

    I never thought that it will work with... SetSource !!!!

    Quote Originally Posted by Marcelo View Post
    thanks Daniil.
    Works for me ...

Similar Threads

  1. [CLOSED] PropertyGrid in Menu
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Jul 04, 2012, 12:21 PM
  2. [CLOSED] Select first row from propertygrid
    By Hari_CSC in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 09, 2010, 5:51 AM
  3. [CLOSED] Propertygrid selected row value
    By Hari_CSC in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 06, 2010, 7:34 AM
  4. [CLOSED] PropertyGrid Values
    By t0ny in forum 1.x Help
    Replies: 6
    Last Post: Oct 13, 2008, 12:41 PM
  5. [CLOSED] PropertyGrid
    By Bernard Jourdain in forum 1.x Help
    Replies: 2
    Last Post: Oct 06, 2008, 1:58 PM

Tags for this Thread

Posting Permissions