UiPath Automation Developer Professional v1 — Question 17
What method can be used to change the index of an existing column in a datatable?
Answer options
- A. MoveAt
- B. SetOrdinal
- C. SetColumnIndex
- D. SetIndex
Correct answer: B
Explanation
The SetOrdinal method is specifically designed to change the index of a column in a datatable, making it the correct choice. The other options do not pertain to altering the index, as MoveAt is used for moving records in a collection, SetColumnIndex and SetIndex are not valid methods in this context.