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
If a table contains 20000 records . In a page at each time 100 records to be displayed what are the steps you will take to improve performance? Will you use dataset or datareader?
What is sqldatasource?
What are the Features of a dataset
What is difference between connected and disconnected architecture in ado.net?
What is the purpose of using adodb?
Does dapper use ado.net?
Why is ADO.NET serialization slower than ADO ?
What providers does Ado.net uses?
What is the advantage of ado.net?
How do you implement locking concept for dataset?
What is serialization and de-serialization in .net? How can we serialize the dataset object?
What is an ado?
What are the data access namespaces in .NET?
What are the connected and disconnected modes in ado.net?
The answers which posted above is not satisfied my requirement? Can some one post teh exact answer? Thanx