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

How do I delete a row from a DataTable?

594


Explain how to find the given query is optimised one or not?

513


What is ado.net objects?

521


How to identify the updated rows in a dataset?

517


Do you use stored procedure in ado.net?

544






What is difference between datatable and dataset?

524


How to retrieve the user id which is provided while windows authentication?

588


What is an orm, and why would you use one instead of plain old ado.net?

572


What is maximum pool size in ado.net connection string?

497


What are the major challenges in accessing data from a database?

529


What is disconnected scenario in entity framework?

536


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

535


What is data relation in ado.net?

517


What are three methods for displaying data in a syncfusion datagrid

612


What is fill method in ado.net?

539