Is it possible not to show the header labels for the child band when the expansion indicator is clicked and how would I get it not to indent?
hi, this is the sample code
<igDP:XamDataGrid Name="xamDataGrid1" GroupByAreaLocation="None">
<igDP:XamDataGrid.FieldSettings>
<igDP:FieldSettings LabelClickAction="Nothing"/>
</igDP:XamDataGrid.FieldSettings>
<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout>
<igDP:FieldLayout.Fields>
<igDP:Field Name="ID" Label="" Visibility="Collapsed">
<igDP:Field.Settings>
<igDP:FieldSettings LabelWidth="50" CellContentAlignment="ValueOnly" >
<igDP:FieldGroupByMode>
</igDP:FieldGroupByMode>
</igDP:FieldSettings.GroupByMode>-->
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>
<igDP:Field Name="USD"/>
<igDP:Field Name="EUR"/>
<igDP:Field Name="GBP"/>
<igDP:Field Name="CAD"/>
<igDP:Field Name="CHF"/>
<igDP:Field Name="SEK"/>
</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
<igDP:FieldLayout.Settings>
<igDP:FieldLayoutSettings LabelLocation="Hidden"/>
</igDP:FieldLayout.Settings>
<igDP:FieldSettings LabelWidth="50">
</igDP:XamDataGrid>
this is the c# code to generate the data
_dt.Columns.Add("ID");
_dt.Columns.Add("EUR");
_dt.Columns.Add("CAD");
_dt.Columns.Add("SEK");
dr1["ID"] = "USD";
dr1["EUR"] = "4.01";
dr1["CAD"] = "4.050";
_dt.Rows.Add(dr1);
_ds.Tables.Add(_dt);
//no create the child table
dt2.Columns.Add("ID");
dt2.Columns.Add("EUR");
dt2.Columns.Add("CAD");
dt2.Columns.Add("SEK");
dr7["ID"] = "USD";
dr7["EUR"] = "4.01";
dr7["CAD"] = "4.050";
dt2.Rows.Add(dr7);
DataRow dr8 = dt2.NewRow();
dr8["USD"] = "11";
dr8["GBP"] = "4.030";
dr8["CHF"] = "4.070";
dt2.Rows.Add(dr8);
_ds.Tables.Add(dt2);
// Create a Data Relation between two tables
new DataRelation("hierarchy",
_ds.Tables["Child"].Columns["ID"]);
_ds.Relations.Add(tableRelation);
Martin, how did you manage to fix this? I used Joe's recommendation of using the ExpandableFieldRecordHeaderDisplayMode but I still see the headers.
Thanks,Rod
Answer half my question. I applied another FieldLayout section whereby i was able to hide the label for the child band. I still haven't figured out how to remove the indentation though.