Пример #1
0
 protected void uiGridViewPiolts_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "DeletePiolt")
     {
         FlightPilot objData = new FlightPilot();
         objData.LoadByPrimaryKey(Convert.ToInt32(e.CommandArgument.ToString()));
         objData.MarkAsDeleted();
         objData.Save();
         BindPilots();
     }
 }