table.PrimaryKey = new DataColumn[] {table.Columns["columnname"]};
I'm not entirely sure if you can do this one data is already in the table... if you can't you'll need to create a new table, set the PK, and then copy the data over.