Hello,I set the DataSource of the grid to a Linq Table.Then I added a new row to the Table butthis new row is not shown in the grid.
This is a very critical problem for me.
How can I fix this?
Hello,
Can you please give us some code snippet on how you bind the XamDataGrid? Are you binding it to a query (IQueryable) or to the table of the Linq context ? Can you confirm that other controls do show the new row (like a ListView)?
I bound it like this:
datagrid.DataSource = row.Column;
Where Column is: EntitySet<MyColumn>
unfortunately it doesn't work with a listview, too.
But the new row is in the EntitySet if I watch in debug mode.
The new row is not being shown because the EntitySet does not send notifications to be bound control (XamDataGrid or ListView). The XamDataGrid is listening to the CollectionChanged event of the underlying data source collection, which the EntitySet does not expose. What you can do is call the GetNewBindingList method of the EntitySet. This will return an IBIndingList object will will notify the XamDataGrid when new objects are added or removed.