RadGrid and Linq - How To Get Code Behind Working
Thread is closed for posting
Posted 21 Jul 2009
Link to this post
I have a nice presentation form that displays all the data within a table automatically (easily done with the component). However, now I want to be able for users to query the database table and click the query button and have the table updated.
Below is the code I am using:
EAIDataClassesDataContext db = new EAIDataClassesDataContext();
var hl7dTypes = from p in db.REF_HL7_DATATYPEs where p.DATATYPE.Contains(RadTextBox1.Text.Trim()) select p;
//LinqDataSource.Equals == hl7dTypes;
//RadGrid1.DataSource = hl7dTypes;
As you can tell I have tried the commented out options and all either do not work or cause a page rendering error. How can I get this to work?