My table has a Date field, from which I would like to query all distinct years, and use those years in my ACB screen filter for that same table.
I am trying to figure out the Linq code I need for this. I just need the query to return something like:
2012
2011
2010
and use these values as the Choice List for my Auto Complete Box.
Many thanks.
The only way that you can do what you want is by creating a custom RIA service, then adding it as a data source. It may seems daunting the first time, but it’s really very easy.
This link will explain the basics. then you can use the LINQ syntax that Kyle showed in his answer.
How Do I: Display a Chart Built On Aggregated Data