Posted By: spivonious | Oct 20th @ 10:58 AM
page 1 of 1
Comments: 7 | Views: 548

A question for the WPF gurus.

 

I have a datagrid bound to a datatable's defaultview. My interface shows new rows with default values, and properly passes any changes made in the interface back to the datatable. What it's not doing is passing any changes made in the dataset back to the interface without me manually calling Items.Refresh on the datagrid.

 

Any ideas? I have the datatable loading in default values on the ColumnChanged event because some defaults depend on another column.

vesuvius
vesuvius
Das Glasperlenspiel

Code sample required

I think you need to change the binding mode to TwoWay

 

 <Binding Source="{StaticResource AllowablesVM}" Path="ValidBottleUnits" Mode="TwoWay"/> 

Maddus Mattus
Maddus Mattus
Do, or do not. There is no try. - Yoda

relies on the INotify thingie interface

 

if the underlying datastructure does not support it, you have to refresh your bindings manually

 

CurrencyManager.Refresh() oh the horror!

 

Maybe write your own dataset generator that uses INotify thingie

page 1 of 1
Comments: 7 | Views: 548
Microsoft Communities