You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

In order to support Multi Object editing in Delft Shell an extended property editor called FilteredPropertyGrid has been added to the DelftShell Grid.

The standard System.Windows.Forms.PropertyGrid support editing of multiple objects by exposing a SelectedObjects property. This functionality is also found in Visual Studio 2005. In the image you can see 3 different views of the grid when editing a form using the form editor.

PropertyGrid analyses the objects set to SelectedObjects and makes the following adjustments:

  • Show empty property value if the values of the different objects are different (See blue boxes in image)
  • Remove all properties that are not found in all selected objects (see column 2 and 3 in image)
  • It removes the Name property is more than 1 object is selected.

FilteredPropertyGrid wrappes the standard System.Windows.Forms.PropertyGrid and combines it with System.Windows.Forms.ComboBox object to allow the user to select object from different classes.

Notes:
The functionality of the original PropertyGrid class in Delft Shell (keyboard support) has not yet been copied to FilteredPropertyGrid.

This is not a replacement for the Multiple Data Editor found in Sobek. This editor uses a table to show multiple objects. This editor allows individual editing of object and multi-editing by selecting ranges in the grid. Some objects are subdivided for to keep it comprehensible (e.g. Flow - Cross Section is split in Cross Section, Friction and Initial Values) This functionality - if needed - can possibly be best implemented by using (custom generated) DataTables bound to a DataGrid.

  • No labels