16-08-18 01:04 PM
24-08-18 11:20 AM
18-10-18 07:44 PM
20-10-18 01:43 AM
C# code to append an AI/PK column to the collection. I'm pretty sure the PK flag will go away on export, but you can use it internally if you need to. It's a bit hacky, but it'll do the job.
In:
Collection - Collection
Out:
New_Collection - Collection
DataColumn col = new DataColumn(); col.DataType = System.Type.GetType("System.Int32"); col.ColumnName = "AIid"; col.AutoIncrement = true; col.AutoIncrementSeed=0; col.AutoIncrementStep = 1; Collection.Columns.Add(col); int index = 0; foreach(DataRow row in Collection.Rows) { row["AIid"]=index++; } New_Collection = Collection;
02-11-18 10:55 AM
30-01-19 04:20 AM