To use the theme-dependent brush to highlight even nodes, set the TreeViewControl.UseEvenRowBackground property to true. Wpf-data-grid-expand-and-collapse-master-rows/CS/WpfApplication21/MainWindow.xaml. The EvenRowBackground property’s default value depends on the current theme.
![devexpress wpf gridcontrol treeview example devexpress wpf gridcontrol treeview example](https://docs.devexpress.com/WPF/images/WPF_Grid_BindToSelected.png)
((TableView)gridControl.View).AutoWidth = true Wpf-data-grid-create-master-detail-grid-in-code/CS/MasterDetailInCode/#L18 gridControl.ItemsSource = Employees.GetEmployees() Developer documentation for all DevExpress products. The image specified by the TreeListNode.Image property overrides the image obtained from the NodeImageSelector. This property specifies the field name in a data source that contains node images. How-to-synchronize-the-column-width-when-contentdetaildescriptor-is-used-e4823/CS/DXGrid.ColumnSync/DetailSyncBehavior.cs#L47 private void SetWidthBindings() Use the TreeViewControl.ImageFieldName property to obtain images from a data source. Wpf-data-grid-display-different-details-based-on-master-row-data/CS/WpfApp30/MainWindow.xaml#L21 The event arguments allow you to identify group rows and replace their display text. To do this, handle the CustomGroupDisplayText event. In this instance, it may be useful to replace the default text displayed within group rows. How-to-emulate-binding-to-the-isexpanded-property-of-the-treelistnode-t127638/CS/DevExpress.Example04/MainWindow.xaml#L29 You can group rows using custom rules by handling the GridControl.CustomColumnGroup event. Wpf-data-grid-extend-crud-operations/CS/DetailCollectionEditing/MainWindow.xaml#L21 Gets or sets the binding that determines whether a node’s check box is enabled.Wpf-data-grid-implement-crud-operations/CS/CodeBehind/EFCore/PagedAsyncSource/MainWindow.xaml#L21 Gets or sets the name of a data source’s field whose values determine whether a node’s check box is enabled. Set the MaxHeight property to a certain value in your GridControl, or. NET 6 App with the Northwind Database The example description includes steps to create the project. To avoid the exception: Use a container that limits the GridControl’s size, or. Download the following blank sample project with a pre-configured database connection: View Example: Blank. Use the following properties to bind the enabled state of check boxes to a property: Property In the case of the default value, the InfiniteGridSizeException is thrown if the GridControl’s height is infinite (for example, the grid is placed in a vertically oriented stack panel).
![devexpress wpf gridcontrol treeview example devexpress wpf gridcontrol treeview example](https://community.devexpress.com/blogs/wpf/summary-for-selection-sum.gif)
Data values are displayed in individual cells. The View renders data source records as rows, and data source fields as columns. Set the TreeListView.AllowRecursiveNodeChecking property to true if you want the control to update check states automatically based on child and parent node selection: The GridView is the default Data Grid View that displays data in a traditional tabular format. Refer to the Assign Editors to Cells topic for more information. Use the EditSettings property to manually define an editor. Add a bar item (for example, BarCheckItem) to the DataViewBase.ColumnMenuCustomizations collection and specify item properties.
![devexpress wpf gridcontrol treeview example devexpress wpf gridcontrol treeview example](https://www.devexpress.com/Products/NET/Controls/WPF/Grid/media/carousel/wpf-grid-touch-enabled-hybrid-app-hd.png)
The TreeListNode.IsChecked property returns the following values: The TreeViewControl uses an in-place editor that depends on its content. The following example demonstrates how to add a custom menu item to a grid column’s context menu: View Example: Customize the GridControls Context Menu. Refer to the Check Nodes Recursively section for information on how to update check states automatically based on child and parent node selection. In this case, a user can specify a check box’s state despite the states of its parents and children.