I am using this as an example: http://help.infragistics.com/Help/NetAdvantage/WPFDV/2010.2/CLR4.0/html/xamPivotGrid_G_DataSources.html
My xaml is:
<
="FlatData"
="[Collateral].[Description],[Account].[Account]"
="[Coupon].[Coupon]"
="TBA
_Qty">
Which generates the error msg above. Also, the following does not work:
<igFlatData:FlatDataSource.ConnectionSettings> <igFlatData:FlatDataConnectionSettings ItemsSource="{Binding ExposureItems}"/> </igFlatData:FlatDataSource.ConnectionSettings>
Why cannot I bind my data to the ItemsSource property?
You can create an instance of FlatDataSource object and set its ItemSource property to your ObservableCollection such as:
FlatDataSource flatData = new FlatDataSource();
flatData.ItemsSource = new Cars().GetCars();
this.DataContext = flatData;
I am attaching a sample that demonstrates it.
Sam
Thanks for the article. I will be more specific with my question:
How do I use an observable collection (property) on my viewmodel as a source of data for a xampivot grid? Note this is not a static resource.
Thanks,
Hello,
Please refer to the Using FlatDataSource article for detail information.