How to add Primary key in DataSet

Answer Posted / rajesh bhawsar

dt.PrimaryKey = {dt.Columns(0)}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is execute reader in ado.net?

683


Can datareader hold data from multiple tables?

853


What is ado.net connection?

663


What are advantages of microsoft-provided data provider classes in ado.net?

758


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

731


What is the default provider in ado.net?

690


How can we add/remove row's in "datatable" object of "dataset"?

752


Which provider is used to connect ms access, oracle, etc…?

724


Does executenonquery return a value?

703


what is the difference betwen typed dataset and untyped dataset?in general which dataset can we use in programming?

741


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

669


can we create synonymn in ms access,sql server,my sql if so explain me with example

1809


What are datareaders?

681


Explian About DataAdapters

773


How to connect and retrieve data from database using dataset

730