Hi,
I have DataTable. That have 2 Columns. one is Element, another one is Attribute. Element Column have duplicate. but Attribute not. i want to remove Entire row if is there any duplicate in Element Column. like Follow.
| Element | Attribute |
| component/header | @[version = '1.2'] |
| component/header/title[cited = 'no'] | @[type = 'series'] |
| component/header/title[cited = 'no'] | @[level = 'Product'] |
from this table i want remove 4th row. i tried to check while adding each row by DataTable.Select. but it return an error. because the Element having single quotes. Also i tried
dt.AsEnumerable().Distinct(DataRowComparer.Default); but that's not help full. is there any idea about this.
Thanks in advance.

Amit GuptaRank #190 · 12.8K reputationPosted May 29, 2017, 2:34 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted May 29, 2017, 2:15 AM EDT
Karthi KeyanRank #1,926 · 762 reputationPosted May 29, 2017, 3:29 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted May 29, 2017, 4:04 AM EDT
Karthi KeyanRank #1,926 · 762 reputationPosted May 29, 2017, 4:27 AM EDT
Karthi KeyanRank #1,926 · 762 reputationPosted May 30, 2017, 2:49 AM EDT