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;
//LinqDataSource.DataBind();
//RadGrid1.DataSource = hl7dTypes;
//RadGrid1.DataBind();
RadGrid1.Rebind();
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?
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;
//LinqDataSource.DataBind();
//RadGrid1.DataSource = hl7dTypes;
//RadGrid1.DataBind();
RadGrid1.Rebind();
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?