- Activating Designer
- Basic Properties
- Column Properties
- Row Properties
- Cell Properties
- Visible Columns
- Generate Columns
- Generate Columns
- Special Cell Types
- Clear Columns
Contact Support
VS2010-Designer-support in WPF GridDataControl (Classic)
5 May 20212 minutes to read
GridDataControl provides rich design time experience by associating a designer. This allows the users to modify the various grid settings to change the look and feel of the grid.
The grid designer is populated with numerous options when ItemsSource assigned to the grid. This enables the users to edit the basic grid properties and the properties of individual column. Changes in any of these properties in the designer have an immediate impact on its XAML code and hence the designer makes the grid more user-friendly.
Activating Designer
-
Open Design window.
-
Right-click on the grid.
NOTE
An edit menu opens.
-
Select Designer View -> Show Designer.
NOTE
Ensure that the grid is assigned with an ItemsSource.
-
Designer Window is displayed.
Designer Window has two options:
- Basic Properties - Modify the overall settings of the grid.
- Visible Columns - Automatically generates a property list for each visible column in the grid.
Basic Properties
This option enables the users to modify the overall settings of the grid. The properties are categorized into three types:
- Column Properties
- Row Properties
- Cell Properties
Column Properties
This section explores the various column options such as Auto Populate Columns, Auto Populate Relations, Allow Sort, Allow Drag Columns, Allow Resize Columns, Show Column Options, Show Filters, Show Group Drop Area and Column Sizer combo box.
- Select as you require in this list.
Row Properties
This section explores the row-related properties such as Show Add New, Show Group Summaries, Show Row Header, Allow Resize Rows, Allow Delete and List Box Selection Modes combo box.
Select as you require in this list.
Cell Properties
This section explores cell level properties such as Allow Edit, Show Error Tooltips, Show Tooltips, Allow Selection combo box, Activate Current Cell Behavior combo box and Visual Style combo box.
Select as you require in this list.
Visible Columns
This section automatically generates a property list for each visible column in the grid. Each list includes the column level properties such as Allow Filter, Allow Sort, Allow Drag, Allow Group, Allow Resize, Is Read Only, Auto fit, Width, Header Text field, Column Format combo box and Cell Type combo box.
- Click Visible Columns.
- Two options are displayed
Generate Columns
Clear Columns
Generate Columns
-
Click Generate Columns to populate the properties for each visible column.
NOTE
Property list for visible column in the grid displays.
-
Select as you require.
Special Cell Types
This combo box lists the various possible cell types applicable to the column. It also automatically deducts the column type of the grid columns and sets the CellType of it. For example, if the column is of Boolean type, it automatically has a CheckBox.
Clear Columns
Click Clear Columns to clear the visible column settings.