protected void gvPhone_RowDeleting(object sender, GridViewDeleteEventArgs e) { gvPhone.EditIndex = -1; ContactPhone phone = ContactPhone.getPhoneByID(Int32.Parse(e.Keys[0].ToString())); phone.Delete(); SaveContactPhone = ContactPhone.GetPhoneNumbersByContactID(ContactID); BuildPhoneList(); }