OleDbDataAdapter ole=new OleDbDataAdapter(new OleDbCommand
("select * from login",oleDbConnection1));
OleDbCommandBuilder cmd=new
OleDbCommandBuilder(ole);
ole.Fill(dataSet11,"login");
DataRow drow=dataSet11.Tables
["login"].NewRow();
drow[0]=textBox1.Text;
drow[1]=textBox2.Text;
drow[2]=textBox3.Text;
dataSet11.Tables["login"].Rows.Add
(drow);
ole.UpdateCommand=cmd.GetUpdateCommand();
ole.Update(dataSet11,"login");
MessageBox.Show("one row added");
this gives exception.how to solve it
Answer Posted / shiva
what is the exception your faced????????
may be the exception is where your declare dataset11
in diconnected model we hav to declre the dataset then only
data willbe fiied in our application.......
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are dataproviders?
Explain sqlconnection object?
What is ole db and odbc?
What is the difference between DataReader and DataSet in ADO.NET?
can we create synonymn in ms access,sql server,my sql if so explain me with example
What are the different execute methods of Ado.Net?
What is the difference between typed and untyped dataset?
Explain ado.net features? Benefits? Drawbacks?
What are the key events of sqlconnection class?
What is datatable in ado.net?
Define data access layer?
What is two way data binding android?
What are the various methods provided by the DataSet object to generate XML?
Why do we use sqldataadapter?
What are the benefits of using of ADO.NET in .NET 4.0?