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
Explain the role of data provider in ado.net?
If a table contains 20000 records. In a page at each time 100 records to be displayed.
What does ado stand for in ado.net?
How can we perform transactions in .net?
What is ado circle?
What are the methods of XML dataset object?
What is ado recordset?
What are the benefits of using of ADO.NET in .NET 4.0?
What is an example of ordinal data?
How can you identify whether or not any changes are made to the DataSet object since it was last loaded?
Explain the difference in record set and dataset?
What provider ado.net use by default? Explain the role of data provider in ado.net? What is the role of data provider in ado.net?
What is microsoft ole db provider for sql server?
What is the use of data grid?
What is ado code?