I am binding a DataGrid to a DataTable and letting the DataGrid automatically
generate the columns based on the DataTable columns. I have assigned
my DataKeyField to one of the columns on the DataTable and all works
well. However, I would like to hide the column in the DataGrid corresponding
to the DataKeyField. Can I do this, and if so, how ?
dgPubList.DataSource = dTable;
dgPubList.DataKeyField = "Publication ID";
// possible code here to hide the column ?