I have a grid that I'm trying to create using the XamGrid control. Everything works fine except when I turn AutoGenerateColumns to false, it doesn't load at all. I've triple checked that my object property matches the field name exactly. It still has nothing. Any ideas? Here's my xaml.
<ig:XamGrid x:Name="test" ItemsSource="{Binding Path=MyList, IsAsync=True}" Height="Auto" MinHeight="150" Width="Auto" MinWidth="500" AutoGenerateColumns="False" > <ig:XamGrid.PagerSettings> <ig:PagerSettings AllowPaging="Top" PageSize="500"/> </ig:XamGrid.PagerSettings> <ig:XamGrid.ColumnLayouts> <ig:ColumnLayout Key="ObjectKey"> <ig:ColumnLayout.Columns> <ig:TextColumn x:Name="fieldName" Key="Name" Width="Auto" HeaderText="Person Name"/> </ig:ColumnLayout.Columns> </ig:ColumnLayout> </ig:XamGrid.ColumnLayouts> </ig:XamGrid>
Can a mod delete this post? The forum threw an error constantly every time I posted this, then suddenly decided to take all my attempts. No idea why.
(It's still doing it BTW. I'll get an error when I hit post but it's going to go through)
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Thank you for your post. I have been looking into it and the code you have provided and I can suggest you see this link from our online documentation:
http://help.infragistics.com/NetAdvantage/WPF/2012.1/CLR4.0/?page=xamGrid_Manually_Defining_a_Basic_Column_Structure.html
where it is explained how to define Column layouts for flat data and here you can see the procedure for hierarchical data:
http://help.infragistics.com/NetAdvantage/WPF/2012.1/CLR4.0/?page=xamGrid_Defining_Hierarchical_Layouts.html
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.