View Single Post
  #2 (permalink)  
Old June 5th, 2003, 09:52 AM
james_sellwood james_sellwood is offline
Authorized User
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to james_sellwood
Default

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 :)
--------------------