Gridview
-
Hello, I need for help in how to use the gridview to insert,update and delete from a database by using code. How can I enable user to edit? thanks.
Dad
Drag and drop the Gridview control onto the work area. Now click on the quick tasks menu which is on the top right of the control. Here you get some options. Click the option New datasource and follow the instructions from there on to configure the Datasource. After finally configuring the datasource. Your Gridview should work just fine for displaying the data. But if you also want to update or delete the data, you just have to open the quick tasks menu again and check the appropriate options like edit and delete. You can't insert new values using Gridview. But if you want to do that you can use FormView control instead.
You don't have to be AFRAID!