Home Forums WinForms controls Xceed Grid for WinForms Multiple Headers Reply To: Multiple Headers

User (Old forums)
Member
Post count: 23064

I am trying to do this same sort of thing and I am running into problems.
I have redefined the template to specify that there are two columnManagerRows but I can’t seem to control how the columns are associated with a given row. For some reason they get added to both rows automatically. Here is a subset of the XAML (by the way I would like to stick with XAML, contrary to many of the examples, because I don’t really like defining appearance in code).

<xcdg:DataGridControl.View>
<xcdg:TableView Theme=”{DynamicResource defaultTheme}” ShowFixedColumnSplitter=”False”>
<xcdg:TableView.FixedHeaders>
<xcdg:ClearHeadersFooters/>
<DataTemplate>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height=”Auto” />
<RowDefinition Height=”Auto” />
</Grid.RowDefinitions>
<xcdg:ColumnManagerRow Grid.Row=”0″ x:Name=”columnRowTop” AllowColumnReorder=”false” AllowSort=”false”/>
<xcdg:ColumnManagerRow Grid.Row=”1″ x:Name=”columnRowBottom” AllowColumnReorder=”false” AllowSort=”false”/>
</Grid>
</DataTemplate>
</xcdg:TableView.FixedHeaders>
<xcdg:TableView.FixedFooters>
<xcdg:ClearHeadersFooters/>
</xcdg:TableView.FixedFooters>
</xcdg:TableView>
</xcdg:DataGridControl.View>

I would appreciate any help that anyone could give in this area,
Thanks,
-Scott

Imported from legacy forums. Posted by scottr (had 3988 views)