Hi,
>I have a combobox with its DataSource set to a DataSet, "dsStatus", that is
>filled from a dataadaptor. The DisplayMember property is set to the name
[quoted text clipped - 12 lines]
> that the dataset has changed. Is this a known problem or have I missed
> something?
If you change the ComboBox and then go to the DataGrid and click on a
different row, do you see the update then (inside the grid) ? If so, then
this is normal, the Control's aren't notified until
CurrencyManager.EndCurrentEdit() is called or until you change current row
(which implicitly calls EndCurrentEdit())..
If you need instant change, you could use:
private void ComboBox_SelectedIndexChanged(...)
{
BindingContext[ds, "mastertable"].EndCurrentEdit();
}
but then you can't cancel edit anymore.
HTH,
Greetings
> TIA.
>
> John.
John Faris - 23 Jan 2006 15:32 GMT
> If you change the ComboBox and then go to the DataGrid and click on a
> different row, do you see the update then (inside the grid) ? If so, then
> this is normal, the Control's aren't notified until
> CurrencyManager.EndCurrentEdit() is called or until you change current row
> (which implicitly calls EndCurrentEdit())..
That's exactly what happens, thanks for pointing that out, I hadn't noticed
this!
> If you need instant change, you could use:
>
> private void ComboBox_SelectedIndexChanged(...)
> {
> BindingContext[ds, "mastertable"].EndCurrentEdit();
> }
Great, thanks again for your help today!