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.
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
Neha SharmaRank #569 · 4.3K reputationPosted Oct 29, 2012, 3:16 AM EDT
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.
VulpesRank #55 · 29.2K reputationPosted Oct 29, 2012, 3:19 AM EDT
http://www.c-sharpcorner.com/uploadfile/61b832/sqldataadapter-fill-method/
Vithal WadjeRank #19 · 47.2K reputationPosted Oct 29, 2012, 4:25 AM EDT
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/