GridView Primary Key

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

I have a data table which is already created with all columns and
data.

I need to define LevelName column as its Primary Key so I can use Find
in it.

I tried the following but it is giving me errors:

dtLevels.PrimaryKey = dtLevels.Columns.Item("LevelName")

What am I doing wrong?

Thanks,

Miguel
 
Back
Top