Refeshing a DataGridView

G

Greg Smith

I am working in vs2008 Win C#.



I have a windows form with a DataGridView. I go to a detail form to
edit/delete the data. When I come back the changes are not reflected. How
do I refresh the data to show edits and deletes?



Any help is greatly appreciated.
 
M

Mr. Arnold

Greg Smith said:
I am working in vs2008 Win C#.



I have a windows form with a DataGridView. I go to a detail form to
edit/delete the data. When I come back the changes are not reflected.
How do I refresh the data to show edits and deletes?

The data came from somewhere. And you're going to need to clear the grid
and re-populate your data from your data source that has reflected changes
to the data.
 
J

Jack Jackson

I am working in vs2008 Win C#.



I have a windows form with a DataGridView. I go to a detail form to
edit/delete the data. When I come back the changes are not reflected. How
do I refresh the data to show edits and deletes?



Any help is greatly appreciated.

Is the DataGridView bound to something? If so, what kind of object.

On the detail form, are you modifying the data in the object to which
the DataGridView is bound?
 
G

Greg Smith

And you're going to need to clear the
grid and re-populate your data from your data source that has reflected
changes to the data.

I am new to this.

Could you please give me an example?

ds.Clear();
ds.<something>
 
C

Cor Ligthert[MVP]

Greg,

In my idea it is better as your give yourself a little sample of your code.

This newsgroup is not to make code for you but to help you with your code.

Cor
 

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