1st this post would be better suited for the asp.net forums within tek-tips.
for your web form. the GridView does not have an insert option. Only Select/Edit/Delete. You have 2 options for inserting a new record. Use the FormView in insert mode, or manually insert a record using the datasource insert parameters.
If you choose option 2 there are as many "correct" methods as there are developers. If you already have the controls linked to the datasource all you need is a button/event hook to call datasource.insert.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.