As soon as I try to filter, page, sort, group one of the grids all of its information disappears. Here is the code...
| namespace HeaderInfoViewer |
| { |
| public partial class _Default : System.Web.UI.Page |
| { |
| protected void btnSubmit_Click(object sender, EventArgs e) |
| { |
| SqlDataSource1.SelectCommand = "select Barcode,Description SamplePointName, UWI, updated_dt DateUpdated, well_license WellLicense, well_name WellName, Field, Pool, Formation, Matrix from ana_sample_points where UWI like '%" + rtxtUWI.Text + "%'"; |
| SqlDataSource2.SelectCommand = "select UWI, well_name Wellname, Fieldname, Poolname, well_license WellLicense from eub_well,eub_field, eub_pool_field " + |
| " where eub_well.fieldcode = eub_field.fieldcode" + |
| " and eub_well.poolcode = eub_pool_field.poolcode" + |
| " and uwi like '%" + rtxtUWI.Text + "%'"; |
| rgInternal.Rebind(); |
| rgEUB.Rebind(); |
| } |
| protected void rgInternal_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) |
| { |
| rgInternal.DataSource = SqlDataSource1; |
| } |
| protected void rgEUB_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) |
| { |
| rgEUB.DataSource = SqlDataSource2; |
| } |
| } |
| } |
