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
GridView
OnSelectedIndexChanged
It's possible that you need to wire up the custom event to the control. Try something like this when first creating the control in the code-behind:
// Add event handler dynamically using C# syntax. GridView1.onselectedindexchanged += this.GridView1_SelectedIndexChanged2;