DataColumn objDataColumn = new DataColumn();
objDataColumn.ColumnName = "AutoColumn";
objDataColumn.AutoIncrement = true;
objDataColumn.AutoIncrementSeed = 1;
objDataColumn.AutoIncrementStep = 1;
objDataTable.Columns.Add(objDataColumn);
Monday, January 31, 2005
Subscribe to:
Post Comments (Atom)
1 comment:
This is how you can create a DataColumn that has an auto-increment column!
Post a Comment