The text of this article is not in this database — only its details are. Read it on the old site: Insert, Update, Delete In GridView Using ASP.Net C#
25 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Emi WhoPosted May 20, 2021, 5:52 PM
Hi Friends, this works perfectly, but what should I do when trying to bulk update (update multiple rows in a gridview) using a button outside the gridview?
Anand ThoratPosted Jun 2, 2018, 2:27 AM
Not Tested... Incompltete Code...
MEENAKSHI KEDWALPosted Aug 26, 2017, 7:08 PM
Hi sir... i couldn't found the definition of method getdata() in above code?
Pradnya DabholkarPosted Jan 27, 2017, 8:10 AM
What is gedata(); in above code ?
Arvind ChourasiyaPosted Jan 23, 2016, 3:44 PM
means for all actions asking for all parameters than only executing..How to do like this example (passing required params)in 3 tier architecture like above example..thank you
Arvind ChourasiyaPosted Jan 23, 2016, 3:41 PM
if I'm using 3 tier architecture so for that(stored procedure) it is asking all parameters for individual actions..suppose I want to delete record so I have pass fname="",lname="",mname="" and id=1;
Vithal WadjePosted Sep 30, 2015, 10:17 AM
Thanks
RAHUL DEOLEPosted Sep 30, 2015, 12:33 AM
very good & useful article
Vithal WadjePosted Jul 19, 2014, 1:52 PM
thanks MK,you can find 3 layer related articles not 3tier related
MkPosted Jul 15, 2014, 3:33 AM
Its really good;)...Do u hve ny other related article similar to this but using 3 tier architecture
Vithal WadjePosted Jun 23, 2014, 2:49 PM
thanks
raviPosted Jun 21, 2014, 2:44 AM
Very helpful.Thank you..........
Vithal WadjePosted Mar 27, 2014, 2:49 PM
thanks sir
Said AbdullahPosted Mar 26, 2014, 12:19 PM
Amazing , Thank you :)))
prasanna rajPosted Dec 16, 2013, 9:14 AM
public void getdata() { connection(); query = "DMLgrid_SP"; SqlCommand com = new SqlCommand(query, con); com.CommandType = CommandType.StoredProcedure; com.Parameters.AddWithValue("@Action", HiddenField1.Value).ToString(); DataSet ds = new DataSet(); SqlDataAdapter da = new SqlDataAdapter(com); //da.Fill(ds, "DMLgrid_TB"); da.Fill(ds); GridView1.DataSource = ds; GridView1.DataBind(); con.Close(); }
prasanna rajPosted Dec 16, 2013, 9:14 AM
finally i got the error "The IListSource does not contain any data sources.", in that particular code....
prasanna rajPosted Dec 16, 2013, 1:24 AM
hello sir, nice tutorial , but i have error like this "Procedure or function 'DMLgrid_SP' expects parameter '@id', which was not supplied." how can i clear this please help me.....
emmanuel constantPosted Nov 20, 2013, 5:01 PM
The is very good. Question, how would you provide filtering functionality?
Vithal WadjePosted May 24, 2013, 10:08 AM
yes jagan sir,you can use any logic,thanks
Jagan MohanPosted May 22, 2013, 6:59 AM
Hi Vital nice article.Instead of multiple If-Else statements can we try this with CASE Expression?
Vithal WadjePosted Apr 8, 2013, 3:21 AM
thanks Anurag sir
Anurag SarkarPosted Apr 8, 2013, 2:00 AM
Nice One.