Forráskód Böngészése

Deal with the problem that the search granule is not refreshed due to the deletion of granules

cxs 1 hónapja
szülő
commit
45954aaa80

+ 10 - 1
OTSIncAReportApp/1-UI/Control_Grids/ParticlesGridDevidePage/ParticlesGridDevidePage.cs

@@ -553,7 +553,7 @@ namespace OTSIncAReportGrids
                     }
                 }
             }
-            if (PageSize == -1)
+            if (PageSize == -1|| PageSize == 0)
             {
                 PageSize = particlesAll.Rows.Count;
             }
@@ -1884,6 +1884,9 @@ namespace OTSIncAReportGrids
             in_img.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
             return ms.ToArray();
         }
+
+
+
         private void ToolStripMenuItem_Delete_Particle_Click(object sender, EventArgs e)
         {
             string path = result.FilePath;
@@ -2665,6 +2668,12 @@ namespace OTSIncAReportGrids
                 
             }
         }
+        void UpdateDataTable()
+        {
+            pageSize = -1;
+            lnkFirst_Click(null, null);
+            SetDataGridViewStyle();
+        }
     }
 }