private void messagesList_RowDeleting(object sender, GridViewDeleteEventArgs e) { long receiveMessageId = (long)messagesList.DataKeys[e.RowIndex].Value; if (NoticeHelper.DeleteReceivedMessage(receiveMessageId)) { ShowMsg("删除成功", true); BindData(); } else { ShowMsg("删除失败", true); } }