Hi, I have a dataset and I am trying to filter the information in many ways on a page. I would like to show the count/occurences of a specific column.
eg, my dastset looks like
Name
Fred
Lisa
Fred
Mike
Fred
Mike
and would like to show it in a datagrid as
Name Occurences
Fred 3
Mike 2
Lisa 1
I am trying the following :
ds.SearchGaps.Select("SUM(Name)")
DataGrid1.DataSource = ds.SearchGaps
DataGrid1.DataBind()
But i keep getting an error of:
'Filter expression 'Count(Name)' does not evaluate to a Boolean term'
Do I need to put it in a dataview first or something first?
Thanks in advance
eg, my dastset looks like
Name
Fred
Lisa
Fred
Mike
Fred
Mike
and would like to show it in a datagrid as
Name Occurences
Fred 3
Mike 2
Lisa 1
I am trying the following :
ds.SearchGaps.Select("SUM(Name)")
DataGrid1.DataSource = ds.SearchGaps
DataGrid1.DataBind()
But i keep getting an error of:
'Filter expression 'Count(Name)' does not evaluate to a Boolean term'
Do I need to put it in a dataview first or something first?
Thanks in advance