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
Explain the role of data provider in ado.net? What is the role of data provider in ado.net?
How can we load multiple tables in to dataset?
What are the advantages using ado.net?
How to add a check box or a dropdown list to a column in a datagrid?
What is a data control clerk?
What are the benefits of using ado.net?
What is the difference between executequery and executenonquery?
How to check if a datareader is closed or opened? IsClosed()
What is aggregate root?
How can we add relation between tables in a dataset?
What is Data Provider?
What is meant by executenonquery?
What is the full form of ado?
What is method to get XML and schema from Dataset? getXML() and get Schema ()
Define data adapter?