G
Guest
hey all,
is there a shorter way to write the following:
System.Data.DataColumn[] keys = new System.Data.DataColumn[1];
// Add the column to the array.
keys[0] = dataTable.Columns[0];
// Set the PrimaryKeys property to the array.
dataTable.PrimaryKey = keys;
thanks,
rodchar
is there a shorter way to write the following:
System.Data.DataColumn[] keys = new System.Data.DataColumn[1];
// Add the column to the array.
keys[0] = dataTable.Columns[0];
// Set the PrimaryKeys property to the array.
dataTable.PrimaryKey = keys;
thanks,
rodchar
. You then