protected void ASPxGridView1_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e) { string id = e.Values["RMES_ID"] as string; StationSubEntity entity = StationSubFactory.GetByKey(id); StationSubFactory.Delete(entity); }