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 / shahil singh

dim col() as new dt.datacolumn
col(0)=dt.column(1)
dt.primarykey=col

Is This Answer Correct ?    30 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Response.Expires and Reponse.ExpiresAbsolute?

979


What are the different ado.net namespaces are available in .net?

944


Which name space is used to get assembly details?

923


What is serialization and de-serialization in .net?

879


What is different between sqlcommand object and command behavior object?

986


What is ado and dao?

901


What is the use of data grid?

905


What are the different methods available under the sqlcommand class to access the data?

1001


What is disconnected data?

980


Explain the difference in record set and dataset?

878


List the 4 common ado.net namespaces?

1081


Explain the difference between an ado.net dataset and an ado recordset?

997


Which method is used to sort the data in ADO.Net?

1921


What is ado.net code?

889


How to identify the controls which can be used for binding data?

955