I am trying to get the selected row of the GridView
, and I know that I should be able to get that information based on the OnSelectedIndexChanged
e
It's been a few years since this question was asked and I certainly hope the person with the problem got it figured out but I had the same problem and thanks to one of the responders I figured out what the problem was.
Check the actual button line in the Gridview and make sure that you have the CommandName="Select"
in the ButtonField. For some reason that code, which is normally entered automatically wasn't added.