DefaultView Property with DataTable

Hello guys,

Anyone has full idea about using DefaultView property with DT ? what is job of it and what returns? formula and so on

Thanks,

The DefaultView property returns a DataView you can use to sort, filter, and search a DataTable.

For Example :We can use the simple DefaultView Code to To Remove Duplicates From Datatable In UiPath

dataTable new_dt =
old_dt.DefaultView.ToTable(True)

Note:
Useful when we are removing duplicates with respect to every “Column”

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.