Exam UiARD All QuestionsBrowse all questions from this exam
Question 121

A developer needs to reference the data in the first row of the "ID" column in the System.Data.DataTable, "DT". Which expression is used to reference this data?

    Correct Answer: B

    To reference the data in the first row of the 'ID' column in a System.Data.DataTable, the expression DT.Rows(0).Item('ID') is used. In a DataTable, Rows is zero-indexed, so the first row is accessed with Rows(0). The column is accessed using the Item method with the column name as a parameter.

Discussion
LarcAi_TrainingOption: B

The given answer is correct