The error message you are getting I think is due to the fact that you are declaring the subprocedure using:
Code:
Sub ShowAdd(Sender As Object, E As DataGridCommandEventArgs)
The button that is calling this function is not part of the datagrid and so is unable to provide DataGridCommandEventArgs. You need to reword the declaration to:
Code:
Sub ShowAdd(Sender As Object, E As System.EventArgs)
--------------------
:) James Sellwood :)
--------------------