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 is Data view?

1065


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

924


Define bubbled event?

918


List the 4 common ado.net namespaces?

1158


What is read only and forward only in ado.net?

938


What are typed and untyped dataset?

1099


What are two types of transaction supported by ado.net?

991


How to copy the contents from one table to another table and how to delete the source table in ado.net?

1028


What is difference in record set and dataset?

1064


Which database is the ado.net sql connection object designed for?

1031


What is ole access?

938


What is the full form of ado?

1004


Is ado.net an orm?

952


What are the different row versions available in table?

963


What is oledb driver?

930