Hello Everyone,
I have a data table with the following columns and rows as I showed below.
- DataTable dt = new DataTable();
- try
- {
- dt.Columns.Add("f1");
- dt.Columns.Add("f2");
- dt.Columns.Add("f3");
-
- dt.Rows.Add("ABC", "ATAG", "");
- dt.Rows.Add("abc", "atag", "");
- dt.Rows.Add("abc", "ATAGChild", "");
-
-
-
- }
- catch (Exception)
- {
-
- throw;
- }
I want to get distinct records from this data table (check case sensitive information) and I need the following expected output as a result in the data table.
Expected Output:
f1 | f2 |
ABC | ATAG |
abc | ATAGChild |
where f1 and f2 is my column.