私は次のデータテーブルを持っています - としましょうMyTable
:
Col1: Col2: Col3: Col4:
1 abc def <null>
2 abc def ghi
1 abc def <null>
3 abc def <null>
1 abc def <null>
そして、私は個別の行を取得しようとしています:
Col1: Col2: Col3: Col4:
1 abc def <null>
2 abc def ghi
3 abc def <null>
次のLINQステートメントを試しました:
MyTable = (From dr As DataRow In MyTable Select dr).Distinct.CopyToDataTable
しかし、繰り返される行を含む元のデータテーブルが返されます。
私は何を間違っていますか?どうすれば目的の出力を得ることができますか??