adding data to datagrid without saving to db
i first add data to datagrid by pressing add button but when i press save button it saves to db using c#
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sujeet SumanRank #790 · 2.9K reputationPosted Sep 22, 2015, 2:32 AM EDT
Carlos kambuiRank #2,642 · 528 reputationPosted Sep 22, 2015, 4:05 AM EDT
DataColumn dc = new DataColumn("column1");
DataRow dr = dt.NewRow();
dr["column1"] = txtExamstudid.Text;
dt.Rows.Add(dr);
Ramesh MaruthiRank #937 · 2.2K reputationPosted Sep 22, 2015, 5:25 AM EDT