I am using AutoFit property to resize the grid columns based on available width. I open my xamdatagrid in a small mode initially and then maximize it, xamdatagrid readjust accordingly. But when i again try to resize it to smaller window it do not resize again. I am also using DataRecordSizingMode="SizedToContentAndIndividuallySizable" RecordResizingArea="RecordSelectorsAndCells"
Can you suggest how to make xamdatagrid resizable all the times.
I got the issue. I was using a ScrollViewer outside xamdatagrid with HorizontalScrollBarVisibility and VerticalScrollBarVisibility set as Auto which was allowing grid to expand but resizing it to normal when compressed.
<Grid>
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" >
<igWPF:XamDataGrid Name="xdg" DataSource="{Binding}"
AutoFit="True" >
<igWPF:XamDataGrid.FieldLayoutSettings>
<igWPF:FieldLayoutSettings DataRecordSizingMode="SizedToContentAndIndividuallySizable"
RecordResizingArea="RecordSelectorsAndCells"
AddNewRecordLocation="OnBottomFixed" AllowAddNew="True" />
</igWPF:XamDataGrid.FieldLayoutSettings>
</igWPF:XamDataGrid>
</ScrollViewer>
</Grid>
I removed HorizontalScrollBarVisibility and VerticalScrollBarVisibility properties of scroll viewer and it started resizing fine.
. Anyway thanks for your help.
Hello Tarun,
I have created a sample application based on your scenario and I could not managed to reproduce the resizing issue that you have described. I tested it with the Latest Service Release of 15.2 and 16.1. If you are not able to reproduce the issue with the attached sample application, would you please modify it with the functionality, that you are using, so it reproduces the issue.
Would you please provide me with more detailed information regarding the environment in which you are developing your application (Operating system, Service Release, the specific version of our product that you are using and any other information that might help reproducing your issue), in order to be able to identify what might be causing this behavior?
This way I would be able to further investigate this for you and provide you with more detailed information on this matter.
Looking forward to hearing from you.
Sincerely, ZhivkoEntry Level Software Developer