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

Explain all the classes those are used for database connections between sql server and asp.net?

984


Give few examples of datareader that is used in different dataproviders.

958


How to pass values into a datatable?

1111


Explain the DataAdapter.Update() and DataSetAcceptChanges() methods.

989


What is typed dataset ?

1156


What are two types of transaction supported by ado.net?

982


Does dapper use ado.net?

996


What is ole word?

932


What are the advantages of ado.net?

899


How do I delete a row from a DataTable?

1140


How to pass multiple tables in datasets simultaneously?

1043


Explain the advantages and disadvantages of using datalist?

1061


Can datareader hold data from multiple tables?

1162


Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?

1127


What is ado rdo dao in visual basic?

1148