![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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? > and re-populate your data from your data source that has reflected changes to the data. |
My System Specs![]() |
| | #3 (permalink) |
| | 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. On the detail form, are you modifying the data in the object to which the DataGridView is bound? |
My System Specs![]() |
| | #4 (permalink) |
| | 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. Could you please give me an example? ds.Clear(); ds.<something> |
My System Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||