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 DataReader Object?
How to read data with the sqldatareader ?
What is untyped dataset?
What is an orm, and why would you use one instead of plain old ado.net?
Define ado.net?
What is difference between dataset and datatable?
What is the difference between dataset and datatable?
Why ca not we use multiple inheritance and garbage collector paralelly in .net?
What is Dataset Object?
Is it possible to load multiple tables in a Dataset?
What is sqldatasource?
What is the use of data grid?
What are the different layers of ado.net?
Explain the difference between sqlcommand object and command behavior object?
What is the current version of entity framework?