Here is the scenario: 1. I am loading data from a stream 2. I am not using any predefined classes 3. I need to dynamically fill a datagrid based on the stream 4. based on properties in the stream I need to specify certain column properties and specify binding for the column
Currently I can accomplish this with a standard Silverlight DataGrid with the following:
private DataGridColumn CreateColumn(string property) { { return new DataGridTextColumn() { CanUserSort = true, Header = property, SortMemberPath = property, IsReadOnly = true,
Binding = new Binding("Data") { Converter = myConverter, ConverterParameter = property } }; } }
I can specify the binding information here with a converter and param.
Is it possible to accomplish the above using the Xam Grid? How can I specify column binding with infragistics? I need to be able to specify the column type, binding, and other column parameters.
Thanks
Follow up:
Thus far I have had no success with binding generic collections of data to Infragistics XamGrids and maintaining Infragistic Datagrid functionality (Sorting, Filtering, Grouping, etc).
I see potential solutions using a dictionary here, but it loses summary and filtering:http://community.infragistics.com/forums/p/54648/284925.aspx#284925
Filtering issues here:http://community.infragistics.com/forums/t/62180.aspx
Issues with ICollection - Sorting and GroupBy here:http://blogs.infragistics.com/forums/t/49473.aspx
I have dynamic data I need loaded with no predefined classes. I need to hook this data up to a datagrid (generics - ICollection and/or dictionaries). I need filtering, sorting, grouping, persistence framework of Infragistics to work.
I see no sign of implementation or information on hooking up generic collections and maintaining infragistics datagrid functionality.
Is it possible?
Does an implementation exist?
Can anyone help to solve this issue?
Infragistics has since added support for dynamic types. Thank you.
Hi ,
You have mentioned that Infragistics have added support for dynamic types. Can you please elaborate on this ?
I am trying to bind SL5 IG XAMGRID with a collection of object, which implements ICustomTypeProvider and has some properties defined at runtime.
Not sure, if thats possible within Infragistics grid data binding context.
I have posted an item in the forum as well for the same - https://es.infragistics.com/community/forums/f/retired-products-and-controls/68784/silverlight-5-xamgrid-bind---dynamic-data
Hello,
I have answered your question in the corresponding forum thread.