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

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
 
C

Claes Bergefall

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top