Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

c# update a form

$
0
0

Hi

I'm new to C#, so go easy on me. I just set up a new Windows form. I set up my database connection in Visual Studio 12, in Data sources i dragged a table onto my form (details mode).

So now i have a form with Navigation that allows me to go through my records. ok, so far so good.

I have now put a button on the form. I want the button to requery the form. And display it. again.

Why? (i have another fron end adding data to the same table and i want them to be present in the form)

The alternative would be to close the form and re-open it. But i don't want to do this.

I've done a search for this, and i see someone has recommended i use this.Refresh() on the button. I've tried that, but its not bringing back the updated data behind the form. How do i solve this?

Regards

Conor


Viewing all articles
Browse latest Browse all 12583

Trending Articles