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
  • 27093
    posted

    Hello,

     

    Here is a link to our documentation describing Field positioning: http://help.infragistics.com/Help/NetAdvantage/WPF/2010.3/CLR4.0/html/InfragisticsWPF4.DataPresenter.v10.3~Infragistics.Windows.DataPresenter.Field~Row.html

     

    And here is a code snippet you can try out:

    <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:Field Name="name" Row="0" Column="0" RowSpan="2"  />

                    <igDP:Field Name="salary" Row="1" Column="1"  />

                    <igDP:Field Name="email"  Row="1" Column="2" />

                    <igDP:Field Name="department"  Row="0" Column="3" RowSpan="2" />

                </igDP:FieldLayout.Fields>

            </igDP:FieldLayout>

        </igDP:XamDataGrid.FieldLayouts>

    </igDP:XamDataGrid>

     

    Please let me know if you require any further assistance on the matter.

     

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support

     

Reply Children