private void RequestData() { this.InitWebGrid(); ImportExcel imXls = new ImportExcel(this.UploadedFileName, this.InputType, this.XmlHelper.GridBuilder, this.XmlHelper.NotAllowNullField); DtSource = imXls.XlaDataTable; DtSource.Columns.Add(this.gridHelper.CheckColumnKey, typeof(bool)); DtSource.Columns.Add("GUID"); DtSource.Columns.Add("ImportResult"); DtSource.AcceptChanges(); foreach (DataRow row in DtSource.Rows) { row[this.gridHelper.CheckColumnKey] = false; row["GUID"] = Guid.NewGuid().ToString(); } this.gridWebGrid.ClearDataSource(); this.gridWebGrid.DataBind(); gridWebGrid.DataSource = DtSource; gridWebGrid.DataBind(); this.lblCount.Text = DtSource.Rows.Count.ToString(); }