Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Refeshing a DataGridView

Reply
 
Old 05-05-2008   #1 (permalink)
Greg Smith


 
 

Refeshing a DataGridView

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.



My System SpecsSystem Spec
Old 05-05-2008   #2 (permalink)
Mr. Arnold


 
 

Re: Refeshing a DataGridView


"Greg Smith" <gjs@xxxxxx> wrote in message
news:uVBWxerrIHA.4876@xxxxxx
Quote:

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

My System SpecsSystem Spec
Old 05-05-2008   #3 (permalink)
Jack Jackson


 
 

Re: Refeshing a DataGridView

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

>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?
My System SpecsSystem Spec
Old 05-06-2008   #4 (permalink)
Greg Smith


 
 

Re: Refeshing a DataGridView

Mr. Arnold wrote:
Quote:

>
> "Greg Smith" <gjs@xxxxxx> wrote in message
> news:uVBWxerrIHA.4876@xxxxxx
Quote:

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

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

My System SpecsSystem Spec
Old 05-06-2008   #5 (permalink)
Cor Ligthert[MVP]


 
 

Re: Refeshing a DataGridView

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@xxxxxx> schreef in bericht
news:OIvAFR3rIHA.2208@xxxxxx
Quote:

> Mr. Arnold wrote:
Quote:

>>
>> "Greg Smith" <gjs@xxxxxx> wrote in message
>> news:uVBWxerrIHA.4876@xxxxxx
Quote:

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

> >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>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
scrolling datagridview .NET General
Image in DataGridView from SQL .NET General
DataGridView new row .NET General
Re: datagridview .NET General
Get the position in a DataGridView .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46