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 / 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 |
FetCh Records No 5 to 10 From Dataset
Which is faster datareader or dataadapter?
What are different layers of ADO.Net?
Define different execute methods of ADO.NET command object ?
What is a data control clerk?
What is different between sqlcommand object and command behavior object?
How do you sort the data in datagrid?
How is it possible to get 2 tables of data at a time by using data reader?
Why do we need ado.net?
Describe datareader object of ado.net with example.
Explain what a diffgram is and its usage ?
What is the difference between Data adaptor and Data set?