MCQs>Database Management>ADO.NET>Read the following statements: DataRow oDetailsRow = oDS.Tables[''OrderDetails''].Row(); oDetailsRow[''ProductId''] = 1; oDetailsRow[''ProductName''] = ''Product 1''; What is wrong in this code?
ADO.NET MCQs
Read the following statements: DataRow oDetailsRow = oDS.Tables["OrderDetails"].Row(); oDetailsRow["ProductId"] = 1; oDetailsRow["ProductName"] = "Product 1"; What is wrong in this code?
Answer
Correct Answer: Row is not a method of the Tables collection
Explanation:
Note: This Question is unanswered, help us to find answer for this one