views:

7

answers:

0

Hello all, I have encountered something strange. I wanted to have the value of my gridview boundfield so I did this.

SelectedID = objGridView.Rows(0).Cells(4).Text.ToString

At first this seemed to work. I played around a little created a hyperlinkfield wanted to get that value but got an empty string. After some looking around it turned out I could not get it as easily as I could with a boundtextfield. No problem.

But here comes my problem , now all of a sudden my line of code to retrieve the value from the selectedId does not work anymore ( at least I'm getting empty strings back ).

I've build and rebuild my gridview but to no avail. I'm flabbergasted and don't get it why it doesn't work anymore. Hence my question. Does anyone have an idea what's happening or have a solution to this problem.

edit: I'm seeing this in my item value "In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user"