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
495
Super-Header: second header row spanning several columns
posted

Hi,

Normal 0 21 false false false DE-CH X-NONE X-NONE MicrosoftInternetExplorer4

I‘m trying to achive a layout of the xamDataGrid like in the attached screenshot. Is this possible?

Parents Reply
  • 495
    Offline posted in reply to [Infragistics] Petar Monov

    Petar,

    Thank you very much for helping me. Sorry for being fussy... but I still don't get exactly what I'm looking for. Your second hint gave me this:

    The rows look okay now. But the entire grid should look like (--> fake):

    My code:

            <igDP:XamDataGrid Name="xamDataGrid1" BindToSampleData="True" >
                <igDP:XamDataGrid.FieldLayoutSettings>
                    <igDP:FieldLayoutSettings AutoArrangeCells="Never"   />
                </igDP:XamDataGrid.FieldLayoutSettings>
                <igDP:XamDataGrid.FieldLayouts >
                    <igDP:FieldLayout >
                        <igDP:FieldLayout.Fields>
                            <igDP:UnboundField Label="Super Header"  Column="1" ColumnSpan="2"  >
                                <igDP:UnboundField.Settings>
                                    <igDP:FieldSettings   CellMaxHeight="0"  />
                                </igDP:UnboundField.Settings>
                            </igDP:UnboundField>
                            <igDP:UnboundField Name="Test" Row="1" Column="0" />
                            <igDP:Field Name="name" Row="2" Column="0" />
                            <igDP:Field Name="salary" Row="1" Column="1" RowSpan="2" />
                            <igDP:Field Name="email"  Row="1" Column="2" RowSpan="2" />
                            <igDP:Field Name="department"  Row="1" Column="3" RowSpan="2" />
                        </igDP:FieldLayout.Fields>
                    </igDP:FieldLayout>
                </igDP:XamDataGrid.FieldLayouts>
            </igDP:XamDataGrid>

Children