Version

Outlook GroupBy with Behaviors

The Outlook GroupBy feature works with all of the WebHierarchicalDataGrid™ control’s behaviors. There are certain behaviors that behave uniquely when you have grouped rows. The following list describes WebHierarchicalDataGrid’s behaviors and how they work with the GroupBy feature.

Activation – All cells and group rows can be activated. When a cell is activated, your end-users can press CTRL+ALT+g to group by that column’s cell values.

Selection – All grouped data rows can be selected; however, a GroupedRecord object (the row that contains the data rows) cannot be selected.

CellEditing – If the grouped cell is edited and receives a value that puts it in another grouped row, WebHierarchicalDataGrid updates the view on the next postback.

RowAdding – WebHierarchcialDataGrid updates the view, placing the row in a grouped row that matches the grouped cell’s value.

RowDeleting – Removes the row.

Sorting – Grouping a column automatically sorts the data for that column; however, it does not add the column to the sorted columns collection. Further, if you have a column sorted, grouping the column removes the column from the sorted columns collection. You can define the default sort direction for the GroupBy feature by adding a ColumnGroupingSetting object to the ColumnGroupingSettings using a specific band’s GroupingSettings property. Set ColumnGroupingSetting object’s DefaultSortDirection property to the GroupingSortDirection enum with the following values: Ascending or Descending.

Paging – Page size is based on data rows, not group rows.