I am trying to leverage the extensive editing capability built into RadGrid to replace a GridView / custom pages (insert/update code).
My data is being sourced from multiple tables and I am using LINQ to retrieve the data.
There is a small snippet of code below, all joined an an "OrgID" field. The join works fine and the resulting data is in fact what I am looking for. However, when I apply the data source and bind it, RadGrid cannot seem to display the columns, auto-generated or otherwise.
It might be related to how I am concanting the data (select new {p,o}) and if that is the case, I need to know what the prefered format of the data is.
My goal is to create a system using rad grid where I can edit a record and have it update as many as 10 tables at once that are all joined together without having to write any update/insert code (or very little).
| var v = (from p in m_db.OrgLists |
| join o in m_db.HostLocations on p.id equals o.OrgNameID |
| select new {p, o}); |
| // Get the data |
| rgOrgList.DataSource = v; |
| rgOrgList.DataBind(); |
Thanks in advance,
Jim