Problems with updating datagrid C#

Asked

Viewed 34 times

1

I have a code that’s responsible for scrapping stocks of a particular product in a product chart... it cuts the stock down without a hitch.. but when I go to the Product Stocks Search Form the product whose stock has been slaughtered does not present the updated stock... so that it updates I need to close the application and then open again only so it presents the stock already updated after slaughter, but I want him to do the slaughtering and when I consult in the form he researches show the updated stock without having to close application first.

NB: I am using Linq to SQL to bring data from the database.

  • Put the code you use to popular the datagrid.

  • Have you tried this command? Tableadapter.Fill(Dataset.Table);

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.