private DataTable Filldt() { DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn("Case_number", typeof(string))); dt.Columns.Add(new DataColumn("Case_Type_desc", typeof(string))); dt.Columns.Add(new DataColumn("Staus_Desc", typeof(string))); dt.Columns.Add(new DataColumn("stage_type_desc", typeof(string))); dt.Columns.Add(new DataColumn("Registration_Date", typeof(string))); dt.Columns.Add(new DataColumn("End_date", typeof(string))); dt.Columns.Add(new DataColumn("GroupNumber", typeof(string))); DataTable td = new DataTable(); td = SV.CaseGridEnglish(); if (td.Rows.Count > 0) { for (int i = 0; i < td.Rows.Count; i++) { DataRow dr; dr = dt.NewRow(); dr[0] = td.Rows[i]["Case_number"]; dr[1] = td.Rows[i]["Case_Type_desc"]; dr[2] = td.Rows[i]["Staus_Desc"]; dr[3] = td.Rows[i]["stage_type_desc"]; dr[4] = td.Rows[i]["Registration_Date"]; dr[5] = td.Rows[i]["End_date"]; dr[6] = td.Rows[i]["GroupNumber"]; dt.Rows.Add(dr); } } return(dt); }
public void Case_Grid() { if (Convert.ToString(Session[Global.SESSION_KEY_CULTURE]) == "ar-AE") { dt = CD.CaseGridArabic(); } else { dt = CD.CaseGridEnglish(); } if (dt.Rows.Count > 0) { dtgCaseGrid.DataSource = dt; dtgCaseGrid.DataBind(); } }