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
590
One row grid problem
posted

Hello,

I have the following murkup of xamDataGrid

<igDP:XamDataGrid x:Name="xdgTestResults"
    DataSource="{Binding ResultGrid}" IsManipulationEnabled="False" >
    <igDP:XamDataGrid.FieldSettings>
        <igDP:FieldSettings AllowEdit="False" AllowResize="False" AllowGroupBy="False"                                                                        LabelClickAction="SelectField"/>
    </igDP:XamDataGrid.FieldSettings>
    <igDP:XamDataGrid.FieldLayoutSettings>
        <igDP:FieldLayoutSettings
            AutoArrangeCells="Never" AllowDelete="False"
            LabelLocation="SeparateHeader"
            HighlightAlternateRecords="True"
            AutoGenerateFields="False"
            AllowFieldMoving="No"
            RecordSelectorLocation="None" />
    </igDP:XamDataGrid.FieldLayoutSettings>
    <igDP:XamDataGrid.FieldLayouts>
        <igDP:FieldLayout>
            <igDP:UnboundField Name="Parameter" Label="Parameter"
                    BindingPath="Items[0]" Column="0"/>
            <igDP:UnboundField Name="Unit" Label="Unit"
                    BindingPath="Items[1]" Column="1"/>
            <igDP:UnboundField Name="Predicted" Label="Predicted"
                    BindingPath="Items[2]" Column="2"/>
        </igDP:FieldLayout>
    </igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid>

DataSource for grid: public ObservableCollection<List<string>> ResultGrid. At the moment of displaying xamDataGrid ResultGrid.Count = 1, Inside list count = 23.

Instead of a table with one row, we see the following (seems XamDataGrid.Rows.Count = Inside list count):

If we have ResultGrid.Count > 1, then all well. Are there any thoughts on this?