I have looked over this code, but it does not work for me.
The error is on this line:
Dim objGrid As DataGrid = CType(sender, DataGrid)
The error received states:
"Specifid Cast not valid."
I need to right click on a grid (I have several grids on a page) and get the grid name or selected grid.