If I sort the datatable, I cannot add a new record anymore. I keep getting
an error saying that the record is a duplicate (the primary key is unique
and definitely not a duplicate).
If I don't sort the datatable, then I can add without any problem.
I sort the datatable using these codes:
myTable.DefaultView.Sort = "MYKEY"
myTable = myTable.DefaultView.ToTable.
Can someone please help?
TIA
YL