tags:

views:

26

answers:

0

First of all, I'm using VS2005.

On random compiles, I'll get the following error: 'DataKeys' is not a member of 'gridView'.

This makes no sense to me, since DataKeys is obviously a member of GridView. Intellisense thinks so, the internet thinks so, I think so. The line that's causing this issue is...

Dim myGridView As GridView = CType(sender, GridView)
        Dim managerIdToDelete As Int32 = CType(myGridView.DataKeys(e.RowIndex).Value, Int32)

This line was actually written by somebody at SO helping me with a related issue earlier. Is it common for compilers to be doing this? Am I doing something terribly wrong?