missing operand ??
-
I created a DataTable thru coding and store some rows/data in it. After that I want to select "Distinct" data from this table.
Datatable dt;
//code for creating & adding datadt.Select("DISTINCT column1");//this givin error
its saying ="Missing operand after column1 operator" I want to select DISTINCT rows from this dt table but its not working, I am using vs2003.
-
I created a DataTable thru coding and store some rows/data in it. After that I want to select "Distinct" data from this table.
Datatable dt;
//code for creating & adding datadt.Select("DISTINCT column1");//this givin error
its saying ="Missing operand after column1 operator" I want to select DISTINCT rows from this dt table but its not working, I am using vs2003.
The DataTable has no built in support for this, you'll basically have to roll your own. Check out this article: Select DISTINCT on DataTable[^] Your other option would of course be to just grab all the rows using DataTable.Select() then de-dupe the returned array.