I have a SPgridview in a webpart.
And i want to get the ID of the item, not the index, when i select a row. How do i do that?
Normally i would just set the DataKeyName of the gridview to "ID" or whatever the column in the table is called.
But here im not allowed to set a single datakeyname, only multiple with a stringArray.. I tried setting it to a string array with only one item, but that failed.
I feed the data inside the gridview using a SPdatasource.
Im very new to this sharepoint world..
Thanks in advance.