Print Page | Close Window

Infragistics XamGrid

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2470
Printed Date: 28-Mar-2024 at 6:05am


Topic: Infragistics XamGrid
Posted By: GeorgeB
Subject: Infragistics XamGrid
Date Posted: 27-Jan-2011 at 9:20am
Hi
 
I generally try not to use 3rd party controls unless I really have to.
 
I now have a large datagrid that needs very complex column filtering and so I've decided to use the XamGrid from Infragistics (since I have a license for it I might as well use it).
 
However I'm having a problem with the columns.
 
InvalidColumnKeyException
The following key(s) do not correspond with the DataSource: "Supplier.CompanyName". If you'd like to add additional columns, please use the UnboundColumn type.
 
What do I need to be aware of when using the XamGrid?
 
Kr
George



Replies:
Posted By: smi-mark
Date Posted: 27-Jan-2011 at 11:28am
Try something like this

<ig:UnboundField 
Name="CompanyName"
Label="Company Name"
BindingPath="Supplier.CompanyName"
BindingMode="TwoWay" />



Posted By: GeorgeB
Date Posted: 28-Jan-2011 at 1:16am
Hi
 
My mistake for now specifying Silverlight version.
 
This works with the DataPresenter in WPF. How would I do this in Silverlight?
 
Kr
George


Posted By: DenisK
Date Posted: 10-Feb-2011 at 8:53pm
Hi GeorgeB;

Have you tried posting this on the Infragistics forum? I'm assuming that this would be better answered there. But if you have a specific DevForce question, then please feel free to elaborate.


Posted By: BillG
Date Posted: 14-Feb-2011 at 11:12pm
I could be wrong but I believe that the Silverlight version of the control does not allow for naviagation properties. I would create a new property in the class that you are binding to the grid.
 
public string SupplierName
{
      get{
           return this.Supplier.CompanyName;
      }
}
 
Assign SupplierName to the column in the grid.
 
Bill
 


Posted By: GeorgeB
Date Posted: 14-Feb-2011 at 11:32pm
Hi Bill
 
That is what I eneded up doing but I did contact Jason Beres from Infragistics directly for a response.
 
Kr
George



Print Page | Close Window