Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1095
XamDatagrid with common column header (label) in a single header row
posted

Hello,

I have a grid with just a single header row and want to have a common column header for two colums but the problem is that the columns get merged respectively the second column overlays the first one. I modified your sample of common headers to demonstrate the issue.

<igDP:XamDataGrid DataSource="{Binding Source={StaticResource provider}}" x:Name="xdg">

<igDP:XamDataGrid.FieldLayoutSettings>

<igDP:FieldLayoutSettings AutoGenerateFields="False" AutoArrangeCells="Never" />

igDP:XamDataGrid.FieldLayoutSettings>

<igDP:XamDataGrid.FieldLayouts>

<igDP:FieldLayout>

<igDP:Field Name="FirstName" Label="Name" Row="0" Column="0" ColumnSpan="2"/>

<igDP:Field Name="LastName" Label="Last Name" Row="0" Column="1" />

<igDP:Field Name="Email" Row="0" Column="2" />

<igDP:Field Name="Age" Row="0" Column="3" />

<igDP:Field Name="BirthDay" Row="0" Column="4" />

<igDP:Field Name="Gender" Row="0" Column="5" />

<igDP:Field Name="Interests" />

igDP:FieldLayout>

igDP:XamDataGrid.FieldLayouts>

igDP:XamDataGrid>

 

What do I have to do to keep the two columns separated under the common header?

Regards