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
980
XamDataGrid column spanning
posted

Hi - I have a XamDataGrid and I would like to have the following field layout:

 

|    Scenario 1   |

factor1 | factor 2

 

The two columns are factor1 and factor2, but they need to have a common column header called "Scenario 1."

What is the easiest way to accomplish a layout like this?

Thanks!

 

  • 30945
    Verified Answer
    Offline posted

    Hello,

     

    The easiest way I could think of is setting FieldLayoutSetting AutoGenerateFields property to False then defining a FieldLayout in XamDataGrid’s FieldLayouts collection and setting Row, Column and ColumnSpan properties for each field in order to achieve the appearance that you want.

    I have created a sample application that demonstrates the approach I described above.

    If you require any further assistance please do not hesitate to ask.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    XamDataGridFieldLayouts.zip