trying to delete a row from a datagrid<BR><BR>ASP.NET CODE<BR><BR>Sub DataDelete(ByVal Sender As Object, ByVal E As DataGridCommandEventArgs)<BR> Dim deletekey As String<BR> If dgusers.EditItemIndex = -1 Then<BR> deletekey = dgusers.DataKeys(CInt(E.Item.ItemIndex))<BR> Labeldescript.Text = ("Key Field " & deletekey & " Deleted")<BR> BindSQL()<BR> Else<BR> Response.Write("Can&#039;t delete until editing is done!")<BR> End If<BR> End Sub<BR><BR>HTML CODE<BR><BR>OnDeleteCommand="DataDelete" DataKeyField="CompanyID"<BR><BR>No errors, it says it has removed the keyfield but still not deleting<BR><BR>thanks<BR>adam