Unable to bind LINQ to gridview

前端 未结 3 1702
隐瞒了意图╮
隐瞒了意图╮ 2021-01-28 00:43

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.Tra         


        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-28 01:23

    I had your problem either , I wrote like this . I hope this work for you :

    var expData = from c in WebDB.TransTable
                  group c by c.enterdate into g
                  select new {EnterDate = g.Key};
    

提交回复
热议问题