Skip to content

About Linq...

yusuf

Asked Apr 22, 2008, 3:33 PM EDT1 answer
Share
LinkedInX

Hi i  try to do queries with linq. This query works. But when i want to show the result in datagrid, cities name is not shown, it is shown their length.

How can i fix this.?

C#
var result = (from cust in nw.Customers select new { cust.Country, cust.City })
.Concat(from supl in nw.Suppliers select new { supl.Country, supl.City });
datagirdview1.Datasource=result

 

Thanks...

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0
    Wonder if you call DataBind method will fix it?
    0