DataTable distinctTable = dtEmp.DefaultView.ToTable( /*distinct*/ true);
As I have read this makes the rows not repeat, I need something like this but for a DataGrid and I can't find the logic to do it.
DataTable distinctTable = dtEmp.DefaultView.ToTable( /*distinct*/ true);
As I have read this makes the rows not repeat, I need something like this but for a DataGrid and I can't find the logic to do it.
Let's see, I don't have the PC at hand for this, but taking into account this question and the other that points to the same thing, I leave you this example of how you can use Distinct.
I hope you understand, I put several examples in 1 so read the line comments well. Bye.