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.

Re: Refeshing a DataGridView by Mr

Mr
Mon May 05 10:23:36 CDT 2008


"Greg Smith" <gjs@umn.edu> wrote in message
news:uVBWxerrIHA.4876@TK2MSFTNGP02.phx.gbl...
>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.


Re: Refeshing a DataGridView by Jack

Jack
Mon May 05 21:25:29 CDT 2008

On Mon, 5 May 2008 08:51:02 -0500, "Greg Smith" <gjs@umn.edu> wrote:

>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?

Re: Refeshing a DataGridView by Greg

Greg
Tue May 06 07:20:55 CDT 2008

Mr. Arnold wrote:
>
> "Greg Smith" <gjs@umn.edu> wrote in message
> news:uVBWxerrIHA.4876@TK2MSFTNGP02.phx.gbl...
>> 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?

>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>


Re: Refeshing a DataGridView by Cor

Cor
Tue May 06 10:10:00 CDT 2008

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

"Greg Smith" <gjs@umn.edu> schreef in bericht
news:OIvAFR3rIHA.2208@TK2MSFTNGP04.phx.gbl...
> Mr. Arnold wrote:
>>
>> "Greg Smith" <gjs@umn.edu> wrote in message
>> news:uVBWxerrIHA.4876@TK2MSFTNGP02.phx.gbl...
>>> 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?
>
> >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>
>