Server Error in '/' Application.

DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'OS_Id'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'OS_Id'.

Source Error:


Line 179:        {
Line 180:            grdSareechandika.DataSource = dt;
Line 181:            grdSareechandika.DataBind();
Line 182:        }
Line 183:        else

Source File: g:\pleskvhosts\acc.globalbuzz.in\httpdocs\chamundeshwaritemple.in\SareeChandika.aspx.cs    Line: 181

Stack Trace:


[HttpException (0x80004005): DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'OS_Id'.]
   System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +2963169
   System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +3233
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +67
   System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +15
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +133
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +34
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +151
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +76
   System.Web.UI.WebControls.GridView.DataBind() +10
   SareeChandika.gridEventlistbind() in g:\pleskvhosts\acc.globalbuzz.in\httpdocs\chamundeshwaritemple.in\SareeChandika.aspx.cs:181
   SareeChandika.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\acc.globalbuzz.in\httpdocs\chamundeshwaritemple.in\SareeChandika.aspx.cs:44
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0