>Hi Naomi
>
>I' not sure what you are trying to do there.
>
>if SelectedIndex is -1 then nothing is selected in the grid.
>
>You need to select something or set SelectedIndex to something.
>
>
>Nick
>
Hi Nick,
In my GridView I have Select button (with the caption 'Edit'), label with the UserName and another link button called 'Remove". I want to be able to get information from the middle column when I click on the Remove button. I was able to solve this problem using hidden field and setting its value from the Client side code, but I was surprised there is no simple property or method to retrieve this info.
Also I'd like to be able to visually highlight the record when I mouse over it. I found some samples on the Net, which I plan to try.
However, this GridView control seems to be lacking this functionality in itself (to me this sounds like a pretty obvious requirement). I'm wondering, may be I should start creating classes or may be there are good classes available already, which I can use with minimal efforts?
Do you have any recommendations here?
Thanks a lot for your help.
If it's not broken, fix it until it is.
My Blog