Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Can a DataGrid cell be refreshed with UpdateSource?

$
0
0

I have a DataGrid that suffers from delayed binding (it only binds properly when the user presses <Enter> and moves one row down, not with <Tab> which is horizontal). I thought that I had found a perfect solution here:

    UpdateSourceTrigger Property

But alas, the provided example is for a TextBox:

// itemNameTextBox is an instance of a TextBox
BindingExpression be = itemNameTextBox.GetBindingExpression(TextBox.TextProperty);
be.UpdateSource();

All I need is an expression to type to the left of UpdateSource(). Isn't the DataGrid cell a kind of TextBox? I am sure they share ancestors...

TIA



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>