Is it possible to hide column headers? Using a drill-down grid as a 'selection list' that displays a single column would be cleaner without the header.
Hello Alexander,
Thank you for your post. I have been looking into it and I can suggest you check these forum threads:
http://es.infragistics.com/community/forums/p/62567/316956.aspx
http://es.infragistics.com/community/forums/p/53090/276218.aspx
http://es.infragistics.com/community/forums/p/59135/407997.aspx
where there are different approaches fro synchronizing the headers. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi,
In my application I have master table with nested table elements (2 layers) in a xamDataGrid. I wanted to have the header for the nested table elements suppressed. The proposed solution worked fine so far.
But to align the cell width of master table and nested table, I tried to handle the SizeChanged events for the columns additionally. To do so, I added a style for the target type "LabelPresenter". As long as your FieldLayoutSetting is contained in my xaml the event handler is never called (when changing the column width of a corresponding table row). It seems that the style becomes disabled by a local field setting.
Do you have a solution which combines both:
1) disable the header
2) allow handling of the SizeChanged events
Thanks in advance!
This is a very nice solution. More on this issue, is there a way that I can show/hide column headers individually?
I have a Approve/Reject button column in the second row for every data record. I do not want to show header for this column. Sample code is attached.
<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout>
<igDP:FieldLayout.Fields>
<igDP:Field Label="Draw Date" Name="DrawDate" Row="0" Column="0" />
<igDP:Field Label="Deal Name" Name="DealName" Row="0" Column="1" />
<igDP:Field Label="Draw Amount" Name="DrawAmount" Row="0" Column="2" />
<igDP:Field Label="Draw Number-SubIndex" Name="DrawNumberSubIndex" Row="0" Column="3" />
<igDP:Field Label="Request Received Date" Name="RequestReceivedDate" Row="0" Column="4" />
<igDP:Field Label="Approval Pending From" Name="ApprovalPendingDate" Row="0" Column="5" />
<igDP:Field Label="Title Required" Name="TitleRequired" Row="0" Column="6" />
<igDP:Field Label="DrawDown" Name="DrawDown" Row="0" Column="7" />
<igDP:Field Label="Capitalized Interest" Name="CapitalizedInterest" Row="0" Column="8" />
<igDP:UnboundField Row="1" Column="0" ColumnSpan="9" Label="{x:Null}">
<igDP:Field.Settings>
<igDP:FieldSettings
CellValuePresenterStyle="{StaticResource ApproveRejectButtons}"
AllowRecordFiltering="False"
AllowGroupBy="False"
AllowSummaries="False"
/>
</igDP:Field.Settings>
</igDP:UnboundField>
</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>
Subu
Sweet. That worked perfectly.
Thank you.
<igDP:XamDataGrid>
<igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings LabelLocation="Hidden"/> </igDP:XamDataGrid.FieldLayoutSettings>
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings LabelLocation="Hidden"/>
</igDP:XamDataGrid.FieldLayoutSettings>
</igDP:XamDataGrid>