hi i am using vb.net, asp.net
i have a datagrid and i have a this code in my aspx file
VB Code:
  1. <asp:DataGrid id="DataGrid1"
  2.             runat="server"  
  3.             BorderColor="Tan"
  4.             BorderWidth="1px"
  5.             BackColor="LightGoldenrodYellow"
  6.             CellPadding="2"
  7.             GridLines="None"
  8.             ForeColor="Black"
  9.             onEditCommand ="Edit_command"
  10.                                       onUpadteCommand="Update_command"
  11.                                       onCancelCommand="Cancel_command">
  12.  
  13. <Columns>
  14. <asp:EditCommandColumn
  15. ButtonType="LinkButton"
  16. UpdateText="Update"
  17. CancelText="Cancel"
  18. EditText="Edit"></asp:EditCommandColumn>
  19. </Columns>

in my aspx.vb file i have this procedure
VB Code:
  1. Public Sub DataGrid1_EditCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs)
  2. datagrid1.edititemindex = e.item.itemindex
  3.     End Sub

i keep on getting this error message that onEditCommand ="Edit_command" is not a member of datagrid 1.. can someone please explain this to me.. thanks in advance...