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?
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
hi,
iam also looking for these kind of soution,in this case we statically defined columns in xaml.can we do this while binding dynamically???
thanks...
Hello Jafar,
You can set the Field's Row and Column in code behind in the same way Petar did in XAML.