I just using a simple LINQ query having group by clause and trying to bind its result set to GridView.
My LINQ query looks like

```
var expData = from c in WebDB.TransTable
              group c by c.enterdate into g
              select g;

```

Grid view on ASP.NET page

```
<asp:GridView ID="GridView1" AutoGenerateColumns="true" runat="server" DataKeyField="Key" />

```

But getting the error:

> 
> A field or property with the name 'Key' was not found on the selected data source.
> 
> 
> 

Anyone can help me please?

None of the answers were helpful