First create the data table and then give the definition for the column
DataTable myDataTable = new DataTable();
DataColumn myDataColumn;
DataRow myDataRow;
myDataColumn = new DataColumn();
myDataColumn.DataType = System.Type.GetType("System.Int32");
myDataColumn.ColumnName = "FileId";
myDataColumn.ReadOnly = true;
myDataColumn.Unique = true;
myDataTable.Columns.Add(myDataColumn);
myDataColumn = new DataColumn();
myDataColumn.DataType = System.Type.GetType("System.String");
myDataColumn.ColumnName = "FileName";
myDataColumn.ReadOnly = false;
myDataTable.Columns.Add(myDataColumn);
Now add the data in that table
myDataRow = myDataTable.NewRow();
myDataRow["FileId"] = i;
myDataRow["FileName"] = NameList[i].ToString();
myDataTable.Rows.Add(myDataRow);
When we delete any row then call the accept change method of the data table
Save pdf smaller size mac online
-
High image quality, bring your ideas to life save pdf smaller size mac
online beautiful presentations. and instantly got the shrunken file!
Although the de...
8 years ago

No comments:
Post a Comment