I know there have been many creative solutions to the problem where the Gridview does not display its headers unless at least one row is bound but I need one for use with Linq.
I was looking at this solution which I think would work well but I need some syntax help:
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/Q_21766789.htmlI want to query the database using Linq and if the query does not return anything then I want the query to return a blank row so I will always bind at least one row of data. Can anyone help or pose a better solution?
Start Free Trial