HOW TO FILL GRID VIEW WITH OUT USING SQLDATASOURCE AND
PROGRAMING?
Answer Posted / sai_sanju84@yahoo.com
we can fill grid view by using sqldataadapter and dataset.
the code will be as follows........
using System.data.sqlclient (add namespace)
in code part....
sqlconnection con=new sqlconnection("server=(the server
which u use);database=(database in which your table
located);user id=;password=");
sqldataadapter da=new sqldataadapter("select * from
table",con);
dataset ds=new dataset();
da.fill(ds);
gridview1.datasourse=ds;
gridview1.databind();
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
What is execute scalar in ado.net?
How many major types of connection objects in ADO.NET?
What connected data?
What are the Features and disadvantages of dataset
What is maximum pool size in ado.net connection string?
Define data adapter?
Define partial class?
What is the role of the dataset object in ado.net?
What is ado.net tutorial?
How to pass values into a datatable?
What is adodb dll?
What is ado.net in mvc?
Explain how to bind the controls(best practice) comboboxes to the data in the dataset?
What are the advantages of ado.net?
What is the difference between executequery and executenonquery?