Beispiel #1
0
 public void GetDocxDetails(Int32 tableid, string tablename)
 {
     hdntableid.Value = tableid.ToString();
     hdntablename.Value = tablename;
     MasterData objmst = new MasterData();
     DataTable dt = new DataTable();
     dt = objmst.GetDocxDetails(tableid, tablename);
     DataColumn dc = new DataColumn();
     dc.ColumnName = "tempid";
     dc.DataType = typeof(int);
     dc.AutoIncrement = true;
     dc.AutoIncrementSeed = 1;
     dt.Columns.Add(dc);
     for (int i = 0; i < dt.Rows.Count; i++)
     {
         dt.Rows[i]["tempid"] = i + 1;
     }
     ViewState["tempdocx"] = dt;
     binddocx();
 }