HOW TO FILL GRID VIEW WITH OUT USING SQLDATASOURCE AND
PROGRAMING?
Answer Posted / manumole
SqlConnection conn = new SqlConnection("Data
Source=MYSERVER;Initial Catalog=Northwind;User
Id=sa;Password=sa;");
conn.Open();
DataTable dt=new DataTable();
SqlDataAdapter da = new SqlDataAdapter("select
* from Employees", conn);
da.Fill(dt);
testGV.DataSource = dt;
| Is This Answer Correct ? | 15 Yes | 8 No |
Post New Answer View All Answers
What is Data view?
Explain how to call the sql commands asynchronously in ado.net version 2.0?
Define bubbled event?
List the 4 common ado.net namespaces?
What is read only and forward only in ado.net?
What are typed and untyped dataset?
What are two types of transaction supported by ado.net?
How to copy the contents from one table to another table and how to delete the source table in ado.net?
What is difference in record set and dataset?
Which database is the ado.net sql connection object designed for?
What is ole access?
What is the full form of ado?
Is ado.net an orm?
What are the different row versions available in table?
What is oledb driver?