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 DataReader Object?

1093


How to read data with the sqldatareader ?

1028


What is untyped dataset?

1140


What is an orm, and why would you use one instead of plain old ado.net?

1098


Define ado.net?

1183


What is difference between dataset and datatable?

1260


What is the difference between dataset and datatable?

1068


Why ca not we use multiple inheritance and garbage collector paralelly in .net?

1052


What is Dataset Object?

1056


Is it possible to load multiple tables in a Dataset?

1141


What is sqldatasource?

976


What is the use of data grid?

997


What are the different layers of ado.net?

1123


Explain the difference between sqlcommand object and command behavior object?

1149


What is the current version of entity framework?

1017