protected void grid1_UpdateCommand(object sender, Obout.Grid.GridRecordEventArgs e) { try { //int isActive = e.Record["SourceIsActive"].ToString() == "true" ? 1 : 0; //int passFail = e.Record["SourcePass"].ToString() == "true" ? 1 : 0; AuditMain audit = new AuditMain(); audit.SourceInfoId = Int32.Parse(e.Record["SourceInfoId"].ToString()); audit.PriorityName = e.Record["PriorityName"].ToString(); audit.SourcePoints = Int32.Parse(e.Record["SourcePoints"].ToString()); audit.SourceIsActive = e.Record["SourceIsActive"].ToString() == "true" ? true : false; audit.SourcePass = e.Record["SourcePass"].ToString() == "true" ? true : false; serv.UpdateAuditMain(audit); } catch (Exception err) { } }