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 the difference between Optimistic and Pessimistic locking?
What do you mean by ‘batch updates’?
Why is stored procedure used in ado.net?
What is ado.net objects?
What is a string variable?
What is sqldatareader in ado.net?
how we can fire event in databound coulm in datagfrid withot using button?
What Is Difference Between Ado And Ado.net?
What is variable view?
What is ado full form?
What are the 3 major types of connection objects in ado.net?
Explain executenonquery?
Is datareader faster than datatable?
If a table contains 20000 records. In a page at each time 100 records to be displayed.
What is executenonquery ado.net?