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
2387
How to auto expand a column?
posted

I want the Description field to fill the rest of the data grid, how do I do that.  Here is my XamDatGrid: 

<igDP:XamDataGrid Margin="0,55.83,0,35" DataSource="{Binding ErrorTable, Mode=OneWay}">
    <igDP:XamDataGrid.FieldLayouts>
        <igDP:FieldLayout>
            <igDP:FieldLayout.Fields>

                <igDP:Field Name="DATE_AND_TIME" Label="Date and Time">
                    <igDP:Field.Settings>                                
                        <igDP:FieldSettings CellMaxWidth="65" AllowEdit="False"/>
                    </igDP:Field.Settings>
                </igDP:Field>
                        
                <igDP:Field Name="DESCRIPTION" Label="Description">
                    <igDP:Field.Settings>
                        <igDP:FieldSettings AllowEdit="False" AutoSizeOptions="Label"/>
                    </igDP:Field.Settings>
                </igDP:Field>

                <igDP:Field Name="ERROR_SOURCE" Label="Error Source" Visibility="Collapsed"/>
                <igDP:Field Name="INFILE" Label="In File" Visibility="Collapsed"/>
                <igDP:Field Name="OUTFILE" Label="Out File" Visibility="Collapsed"/>
                <igDP:Field Name="ERROR_TYPE" Label="Error Type" Visibility="Collapsed"/>
                <igDP:Field Name="SEVERITY" Label="Severity" Visibility="Collapsed"/>
                <igDP:Field Name="ERRORNUMBER" Label="Error Number" Visibility="Collapsed"/>

            </igDP:FieldLayout.Fields>
        </igDP:FieldLayout>
    </igDP:XamDataGrid.FieldLayouts>

</igDP:XamDataGrid>