Question: All, I am creating a web application and I need to give users the ability to add/edit/delete records in a grid type control. I can't use 3rd party controls so I am restricted to just whats in the box for asp.net (datagrid or gridview) or creating my own. Any thoughts on the best direction to go in. I'd like to keep the complexity level at a dull roar :)

thanks in advance
daniel

Answer: 
Gridviews have different item templates that you can use for editing and inserting data. That'd be an easy way to go about it. 

As long as you set your datakeyid property to the primary key in the database, you should be able to make template fields based off of whether or not you're editing or inserting data. The command name of the button you use to fire the event will handle the statements required for updating/inserting data. 

[This](http://www.aspdotnetcodes.com/GridView_Insert_Edit_Update_Delete.aspx) is a good site for some examples.
this is the best site for what you are after

**www.Asp.Net**

* [**Data Access Tutorials controls**](http://www.asp.net/learn/data-access/)
* [**Master/Detail Using a Selectable
Master GridView with a Details
DetailView**](http://www.asp.net/learn/data-access/tutorial-10-cs.aspx)
* [**Using TemplateFields in the GridView
Control**](http://www.asp.net/learn/data-access/tutorial-12-cs.aspx)

**Others**

* [**Beginners Guide to the GridView
Control**](http://aspnet101.com/tutorials.aspx?id=51)
* [**The GridView Control**](http://www.hotscripts.com/listing/asp-net-2-0-free-tutorials-the-gridview-control/)
* [**IN-DEPTH LOOK AT THE GRIDVIEW CONTROL**](http://www.programminglearn.com/409/in-depth-look-at-the-gridview-control)