Browse Source

修改颗粒全选不随从此颗粒之下取消选择状态改变的bug

cxs 4 tháng trước cách đây
mục cha
commit
ada40fd6a1

+ 6 - 0
OTSIncAReportApp/1-UI/Control_Grids/ParticlesGridDevidePage/ListOfSimilarParticles.cs

@@ -893,6 +893,12 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
                 {
                     dgV_SimilarParticles.Rows[i].Cells[0].Value=false;
                 }
+                if(dgvr.Index + 1!= dgV_SimilarParticles.Rows.Count)
+                {
+                    this.cBx_All.CheckedChanged -= new System.EventHandler(this.cBx_All_CheckedChanged);
+                    cBx_All.Checked=false;
+                    this.cBx_All.CheckedChanged += new System.EventHandler(this.cBx_All_CheckedChanged);
+                }
             }
         }
     }