Refeshing a DataGridView

  • Thread starter Thread starter Greg Smith
  • Start date Start date
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.
 
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.
 
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?
 
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>
 
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
 
Back
Top