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.
Data Grids are vital controls in many user interfaces.
Like it or not still 2D tables are one of the most comfortable user interface elements in not only viewing data but also in performing rapid inserts and updates.
In general, gridview control is used to populate the data in tabular format from different datasources and basically it derived from webcontrol class.
I'd like to know if there are any other ways to retrieve the new values? I have been using the web site successfully for just over a year, and I am presently using a Select button in the row to launch a detailsview, and I edit the database that way. Net a year and a half ago, and VB programmer forever before that, but I feel pretty confident in this large and powerful website I have created, but the users don't like the details view have expressed a desire to edit on the fly in the gridview. My user base has a hold of management's ear, and my management wants to dump ASP. This could be the straw that broke the camel's back - a person's job hangs in the balance - MINE!! If you are databinding in page_load then you need to only do it if(! Create the customer table in your own test database using below table script and insert some records initially to load gridview with data.Once you execute the above table and insert scripts, you will get the below records in the table initially to load data into gridview control.This is the View Model class used for data binding.event we create a new View Model object with the values entered in the grid.And add it to the Session collection then we bind the Session collection to the grid.