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 are the classes in System.Data.Common Namespace?

1110


What is the advantage of ado.net?

974


Which object is used to add relationship between two Datatables?

995


What is the difference between linq and ado.net?

965


What is ado circle?

1100


What is sqldatareader?

890


How can we load multiple tables in a dataset?

1117


What are the benefits of using of ADO.NET in .NET 4.0?

1014


What is difference between Dataview and Datatable?

1020


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

980


What is the difference between ado.net and oledb?

921


What is the difference between Optimistic and Pessimistic locking?

944


Explain the different row versions available in table?

1003


Which parameter of ConnectionString is used to specify the name of the database?

1011


Is bulk insert faster than insert?

879