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

What is the difference between Data adaptor and Data set?

1034


What is data view and variable view?

910


What is the full form of ado?

1009


What Is Difference Between Ado And Ado.net?

1032


What are the key features of ado.net?

1195


How to store data in memory?

948


What is openrowset?

980


What is data adapter in ado.net with example?

1032


What is the use of connection object in ado.net?

1059


What is difference between executenonquery and executequery?

967


What is the significance of CommandBehavior.CloseConnection ?

1166


What are all the different methods under sqlcommand?

984


What is data relation in ado.net?

1071


What is ado data control?

996


How can you add or remove rows from the datatable object of dataset?

1025