Updating gridview in vs 2016
Here is the call back method that will handle all call backs from different methods.When you use an async architecture, the call back is always on a new thread other than the parent one.And here I’m explaining some basic functions of this gridview control such as insert edit and delete a record.First, we need to prepare the database table and stored procedure for gridview operations such as insert, update & delete a records, here I’m using sql server 2008 for all database activities, for this sample I have created the customer table and stored procedure for all mentioned gridview operations.
Delegates are the best practices to design the async architectures because most things are handled internally by CLR and you do not have to bother much about them.
Here is one of the sample methods that gets SQL Server instances asynchronously.
After Begin Invoke(), the user is free to perform any task. This is how you can invoke a method asynchronously by using a delegate.
Builder will automatically generate insert, update, and delete command, provided that you select a primary key in your select query.
I have faced a very common problem of cross thread exception.