views:

173

answers:

0

Hi,

I have a column of a DataTable bound to a Label (via a BindingSource).

If I make a change to the current row thus

row["Column Name"] = "New Value";

the change is not reflected in the bound label unless I also do

bindingSource.ResetCurrentItem();

However, if I wrap the change to the column in a Begin/EndEdit as follows

row.BeginEdit();
row["Column Name"] = "New Value";
row.EndEdit();

the change is immediately reflected in the bound control.

In the first example shouldn't the change be reflected without having to call ResetCurrentItem()?

UPDATE: As I thought the first example should work. I rebooted VS2008 and lo and behold it now works as expected...