/// <summary> /// Initialise a new propertyform, customizing the supplied object. /// </summary> /// <param name="customisedObject"></param> public PropertyGridForm(object customisedObject) { InitializeComponent(); this.CustomisedObject = customisedObject; propertyGrid.CollapseAllGridItems(); }
private void Sample_Properties_Load(object sender, System.EventArgs e) { propGrid.CollapseAllGridItems(); }