I have a LINQ expression that joins two tables. I want to add the 'list' to the gridwish. DataBinding: Code GridView creates this error in the template 'SearchResult' does not include a property with the name 'codereq' Bind gridview code: is as below your aspx page: it should help
IQueryable & LT; SearchResult & gt; MyList = TBL_Apartment in T.Code at TBL_Owner joining the K == equals == k.Code where k.CodeReq t.CodeReq is new SearchResult {codereq = t.CodeReq, name = t.Name} Public class SearchResult {Public string codereq selection; The name of the public string; }
grid search. Data source = myList.ToList (); GridSearch.DataBind (); As the grid view for
Comments
Post a Comment