The following code sample prevents the activation of the root node’s editor. Allows you to prevent the activation of the editor. The TreeViewControl includes the following events to process user actions: Event In this case, the TreeViewControl adjusts its appearance and synchronizes the editor with the source field specified by the TreeViewFieldName property. The following code sample wraps text in browse mode and adds a delete button in edit mode:įor the DevExpress Data Editors (the BaseEdit class descendants), you can set the editor’s Name property to PART_Editor. The template that displays an editor used to edit node values. The TreeViewControl includes templates that allow you to define editors that display (when the control is in browse mode) and edit (when the control is in edit mode) node values: Template You can use different in-place editors to display and edit data. The following code sample applies a mask that allows users to enter letters, dots, and spaces.įor the DevExpress Data Editors (the BaseEdit class descendants), you can set the editor’s Name property to PART_Editor. Use the EditSettings property to manually define the editor. For example, the TreeViewControl uses the TextEdit to edit text/string values, and the CheckEdit to edit Boolean values. The TreeViewControl uses an in-place editor based on data type. To allow users to edit the TreeViewControl, set the AllowEditing property to true. The TreeViewControl uses the DevExpress Data Editors to edit node values. Returns the text displayed within the specified node.įor information on how to obtain nodes, refer to the following help topic: Obtain Nodes and Their Row Handles. Refer to the following help topic for information on how to customize group summaries: Group Summary Customization.You can use the TreeViewControl‘s methods to obtain and change node values. Gets or sets the template that defines the presentation of column values displayed within group rows. GridViewBase.GroupValueTemplate / GridColumn.GroupValueTemplate Gets or sets the template that defines the presentation of group rows. Gets or sets the style applied to group rows. The table below lists properties used to customize appearance of group rows: Property Users can only group data if data sorting is allowed ( DataViewBase.AllowSorting). The GridControl sorts data against group column values. This feature is not compatible with the Instant Feedback UI Mode. When this option is enabled, grouped columns are displayed within a view regardless of the current value of the GridViewBase.ShowGroupedColumns property. To do this, set the TableView.AllowPartialGrouping property to true. It is possible to hide the group row for groups that consist of a single row. Set the GridViewBase.ShowGroupedColumns property to true to show these columns in the View. Their headers are displayed within the Group Panel. The GridControl hides group columns from the View. This property returns the list of group columns, which allows individual columns to be accessed using indexed notation. Group columns can be accessed from the GridViewBase.GroupedColumns property.
If data is grouped against a column that isn’t sorted, the grid will automatically apply sorting to the column in ascending order. Rows are always sorted against group columns. Group row handles are negative (starting from -1). Each group row is assigned a unique integer value - row handle. Group rows are used to organize data rows into a tree when data grouping is applied. If the View is grouped by another column, data rows within each group are arranged into second level groups based on the values of the new group column. When a View is grouped by a single column, data rows that have identical values in this column are arranged into groups. As we talked about in the previous article, the WPF TreeView can be used in a very simple manner, by adding TreeViewItem objects to it, either from Code-behind or simply by declaring them directly in your XAML. The GridControl allows data to be grouped by an unlimited number of columns.