G
Guest
Hi,
I have a datatable that has three columns each of data type Guid. (which I
have just changed from previously being Integers)
In the past I have used :
dataTable.Compute("Count(Col1)", "Col1=5") - which worked fine
Now having changed the data types to Guids I get an exception when I use:
dataTable.Compute("Count(Col1)",
"Col1='00000000-0000-0000-0001-000000000032'")
(also generates exception for:
dataTable.Compute("Count(Col1)", "") - so the problem is not with the
filter expression.
The error is:
Message="Invalid usage of aggregate function Count() and Type: Guid."
Source="System.Data"
Does anyone know how to get this working please?
thanks,
Giles
generates Exception
I would like to use th
Invalid usage of aggregate function Count() and Type: Guid.
I have a datatable that has three columns each of data type Guid. (which I
have just changed from previously being Integers)
In the past I have used :
dataTable.Compute("Count(Col1)", "Col1=5") - which worked fine
Now having changed the data types to Guids I get an exception when I use:
dataTable.Compute("Count(Col1)",
"Col1='00000000-0000-0000-0001-000000000032'")
(also generates exception for:
dataTable.Compute("Count(Col1)", "") - so the problem is not with the
filter expression.
The error is:
Message="Invalid usage of aggregate function Count() and Type: Guid."
Source="System.Data"
Does anyone know how to get this working please?
thanks,
Giles
generates Exception
I would like to use th
Invalid usage of aggregate function Count() and Type: Guid.