Hi,
How to use Fill method of DataAdapter object is used to place query results into a DataSet?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vithal WadjePosted Oct 29, 2012, 8:25 AM
for more detail see my article here http://www.c-sharpcorner.com/UploadFile/0c1bb2/fill-Asp-Net-dropdown-list-from-database-table-using-Asp-Net/
VulpesPosted Oct 29, 2012, 7:19 AM
http://www.c-sharpcorner.com/uploadfile/61b832/sqldataadapter-fill-method/
Neha SharmaPosted Oct 29, 2012, 7:16 AM
follow the below link:
Create String :
http://nehaprogrammer.blogspot.in/search?updated-max=2012-01-12T00:06:00-08:00&max-results=7&start=28&by-date=false
Create Object :
http://nehaprogrammer.blogspot.in/2012/01/creating-objects.html
Now when you do this all you need to add code to use table:
con.con.open();
con.cmd.commandText="select * from tablename";
con.adp.fill(con.ds,"a");
GridView1.DataSource=con.ds.tables["a"];
Gridview1.bind();
Con.con.close();
Descriptions :
con.adp.fill = this line ll fill the table in an virtual table.
Learn carefull each steps you ll come to know the role and work process of fill,use brekapoints to learn in more depth.
Thanks.