How to add/update/delete more than 1 record in datagrid at one go i.e. how to handle batch updates
In C# windows application:
There is a datagrid. I add more than 1 record. How can I save all these records in table at one go?
Similary for update/delete
I am currently using the following code to handle one record:
int aa=Int32.Parse(dataGrid1[dataGrid1.CurrentRowIndex,0].ToString());
string ss=dataGrid1[dataGrid1.CurrentRowIndex,1].ToString();
string ins="Insert into test values("+aa+","+"'"+ss+"')";
dt=cc.conn(ins);
dt.AcceptChanges();
MythicalMePosted Dec 24, 2004, 11:07 AM
amit_gupta14Posted Dec 24, 2004, 2:39 AM
MythicalMePosted Dec 24, 2004, 2:31 AM
amit_gupta14Posted Dec 23, 2004, 11:39 PM
MythicalMePosted Dec 23, 2004, 11:31 PM