This question is locked. New answers and comments are not allowed.
Hi,
I have used the information on this thread:
http://blogs.telerik.com/vladimirenchev/posts/11-09-28/dynamic-binding-for-your-silverlight-applications.aspx
to create a gridview that is bound to an ObservableCollection<DataRow> (DataRow is the same class as in Vladimir's example..).
All works fine (thank you Vladimir) and the grid has a column per each of the properties added to the dictionary inside the DataRow.
My issue is that i need to add additional fields at run time. Something like this:
where dataRows would be my ObservableCollection<DataRow>.
When I do this I would need to force the gridview to add the new column and reload the rows to show the new values.
Any idea how to do this without having to recreate the gridview object?
Another issue is how to create bidirectional binding for the values in this situation...
Thanks for your help in advance.
I have used the information on this thread:
http://blogs.telerik.com/vladimirenchev/posts/11-09-28/dynamic-binding-for-your-silverlight-applications.aspx
to create a gridview that is bound to an ObservableCollection<DataRow> (DataRow is the same class as in Vladimir's example..).
All works fine (thank you Vladimir) and the grid has a column per each of the properties added to the dictionary inside the DataRow.
My issue is that i need to add additional fields at run time. Something like this:
foreach
(var obj
in
dataRows)
{
obj[
"New Field"
]=value;
}
When I do this I would need to force the gridview to add the new column and reload the rows to show the new values.
Any idea how to do this without having to recreate the gridview object?
Another issue is how to create bidirectional binding for the values in this situation...
Thanks for your help in advance.