Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: DataGrid row detail [21856]

$
0
0
I am unable to find documentation on how to create a row detail template for the selected row in the datagrid control. can anyone direct me to an example or some type of documentation that shows how it is done. My online search so far has been fruitless.
Comments: ** Comment from web user: BoucherS **

Hi,

If you want to change the DataRow Background/Foreground when selected, you can do it this way :
```
<xcdg:DataGridControl x:Name="_dataGrid"
ItemsSource="{Binding MyData}" >
<xcdg:DataGridControl.Resources>
<Style TargetType="{x:Type xcdg:DataRow}">
<Setter Property="SelectionBackground"
Value="Green" />
<Setter Property="SelectionForeground"
Value="Red" />
</Style>
</xcdg:DataGridControl.Resources>
</xcdg:DataGridControl>
```
if you want to modify the DataRowTemplate, you can find it here (for windows 8 in TableflowView):
-In file Xceed.Wpf.DataGrid/themes/Aero2/TableflowView.Aero2.normalcolor.xaml, look for style "tableflowViewAero2NormalColorDataRowStyle"
-it will be based on style "tableflowViewAero2NormalColorRowStyle" from the same file.
-The Template named "tableflowViewRowTemplate" will be found in Xceed.Wpf.DataGrid/themes/Common/TableflowView.GridElementTemplates.xaml.

If you are looking for the MasterDetails feature, it is only in the full "Xceed DataGrid for WPF" available here : http://xceed.com/Grid_WPF_Intro.html. The difference between the Datagrid is shown here : https://wpftoolkit.codeplex.com/wikipage?title=Advanced%20DataGrid&referringTitle=DataGrid


Viewing all articles
Browse latest Browse all 4964

Trending Articles