private void loadGridData() { DataTable dt = MasterData.AOREstimation_Get(0, false); if (dt != null) { this.DCC = dt.Columns; Page.ClientScript.RegisterArrayDeclaration("_dcc", JsonConvert.SerializeObject(DCC, Newtonsoft.Json.Formatting.None)); InitializeColumnData(ref dt); dt.AcceptChanges(); spanRowCount.InnerHtml = dt.Rows.Count.ToString(); } grdMD.DataSource = dt; grdMD.DataBind(); }