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 add Primary key in DataSet

Answer Posted / gopi

ds.Tables[0].Constraints.Add("pk_sid",
ds.Tables[0].Columns[0], true);

Is This Answer Correct ?    29 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you fill the gridview by using datatable object at runtime?

1028


Explain the dataadapter class in ado.net?

1191


What is difference between Dataview and Datatable?

1051


Data reader read and forward only, how is it possible to get 2 tables of data at a time?

901


What is ado and rdo?

888


What is the use of adodc?

979


Explain which name space is used to get assembly details?

947


Which ado.net object is very fast in getting data from the database?

1086


Describe ado.net object model in detail.

973


What is the difference between data grid and data repeater?

1060


What is oledb connection?

969


How is it possible to get 2 tables of data at a time by using data reader?

938


What is disconnected data?

1025


Define the data provider classes that is supported by ado.net?

956


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

1016