How do I refresh data on a 'read-only' datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a datagrid, doubleclicking a row opens a form. I edit the data in the form and update the data in the underlying Dataset. When I close the edit form the grid displays the old data. When I close the grid form, then re-open it, the changed data is displayed

How can I see the changed data without closing and opening the grid form

Andrew Woodgat
 
Rebinding it should work. Try this:
myGrid.SetDataBinding(myGrid.DataSource, myGrid.DataMember)

/claes


awoodgate said:
I have a datagrid, doubleclicking a row opens a form. I edit the data in
the form and update the data in the underlying Dataset. When I close the
edit form the grid displays the old data. When I close the grid form, then
re-open it, the changed data is displayed.
 
Back
Top