Hi,
I am using XamGrid in silverlight.
From Database getting a data set.
In database columns and rows are not predefined.
In silverlight how can bind the XamGrid from that data source.
I am using WCF services.
Kindly suggest me.
Thanks with Regards
Asit Sinha
A colleague of mine, Jason, already put together a sample doing something very similar for another forum thread,
You can check it out here:
http://community.infragistics.com/forums/p/54648/284925.aspx#284925
Thanks,
-SteveZ
The only way you'd be able to do this is really by using a Dictionary, as Anonymous types aren't supported with Bindings in SL.
SO you'd loop through your xml and Fill your dictionary.
The only thing is, that Columns won't be AutoGenerated for Dictionaries. Instead, you'd need to manually create your columns in the code behind.
No,
I am giving you example.
I have dynamic database, and user can create dynamic database table.
In this table user can declare n number of column.
When i am fetching this table information
then i am not aware how many column in table.
In WCF i am returning XML to silverlight, now i am using XamGrid.
In XamGrid how can achieve this thing.
Thats a reason i am unable to crate IEnumerable or List<>
In silverlight Item source should be IEnumerable but as per that cause its not possible.
This is main issue.
Kindly tell me with example or sample.
The XamGrid is looking for an IEnumerable to bind against, so the question is does your data source implement this interface?