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?
I am not sure I understand what you mean. Here is what I get when I run the snippet I gave you:
Please describe in more details what you meant, or illustrate with a screenshot of your own.
Looking forward to hearing from you.
Regards Petar.
Petar, thank you for replying.
It's almost what I'm looking for... In your case you get the "invisible" SuperHeader-field in each row. Therefore the textboxes for salary and email are displayed on the bottom of the row instead in the center like department.
Can that be changed?
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