PkgDates.Columns.Add("Cmn_minor_code", typeof(string)); PkgDates.Columns.Add("BatchID", typeof(string)); PkgDates.Columns.Add("Disp_Course", typeof(string)); PkgDates.Columns.Add("Start_date", typeof(DateTime)); PkgDates.Columns.Add("End_date", typeof(DateTime)); PkgRows = PkgDates.NewRow(); if (this.DdlPKGCode.Text != "") { return; } ViewState["table"] = PkgDates;
PkgRows = PkgDates.NewRow(); PkgRows["Cmn_minor_code"] = this.DDLPKGMinorCode.Text.ToString().TrimEnd(); PkgRows["BatchID"] = this.LstPKGCrsDate.SelectedValue.ToString().TrimEnd(); PkgRows["Start_date"] = Dt_Batches.Rows[LstPKGCrsDate.SelectedIndex][2]; PkgRows["End_date"] = Dt_Batches.Rows[LstPKGCrsDate.SelectedIndex][3]; PkgRows["Disp_Course"] = this.DDLPKGMinorCode.Text.ToString() + " - " + StrDate; this.PkgDates.Rows.Add(PkgRows); ViewState["table"] = PkgDates; ViewState["AdCrsCount"] = PkgDates.Rows.Count;
Column 'BatchID' does not belong to table Table1.
PkgDates.AcceptChanges();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)