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 are the ado.net components?
What are the parameters that control most of connection pooling behaviours?
What are the methods of XML dataset object?
can we create synonymn in ms access,sql server,my sql if so explain me with example
oledbdataadpter with ms access in c#.net giving exception System.Data.OleDb.OleDbException while writing adapter.update(dataset,"tabname"); how to update the database from dataset?
What is a data control clerk?
What is execute scalar in ado.net?
How to create data relations?
How to enable and disable connection pooling?
What is the use of SqlCommandBuilder?
What is the procedure to call a Stored Procedure of Back End in ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
Can we create Synonymns in MS Acess,My Sql Server,Sql Server? But iam we can create in oracle!
What are the advantages of using datalist?
What is meant by executenonquery?
What are the advantages using ado.net?