Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What does executereader return?

985


What are the steps you will take to improve performance?

896


Explain advantages of ado.net?

1052


Explain the dataadapter class in ado.net?

1211


How do you update database through dataset?

988


What is a sqldataadapter?

998


What is different between sqlcommand object and command behavior object?

1062


What are the advantages of using datalist?

1006


What are the different execute methods of Ado.Net?

1027


What are the rules to implement connection pooling?

1069


What are the 3 major types of connection objects in ado.net?

1001


Explain the various objects in dataset.

998


How to store data in memory?

954


What is ole in excel?

942


Explain how to call the sql commands asynchronously in ado.net version 2.0?

931