章政 před 7 roky
rodič
revize
3326c46ae7

+ 6 - 0
UAS-出货标签管理/UAS_出货标签管理.cs

@@ -2741,11 +2741,17 @@ namespace UAS_LabelMachine
             if (e.ColumnIndex >= 0 && e.RowIndex >= 0)
             {
                 CurrentItemIndex = 0;
+                DataGridViewSelectedRowCollection col = LabelInf.SelectedRows;
+                for (int i = 0; i < col.Count; i++)
+                {
+                    col[i].Selected = false;
+                }
                 for (int i = 0; i < LabelInf.RowCount; i++)
                 {
                     if (GridPrcode.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString() == LabelInf.Rows[i].Cells["pib_prodcode"].Value.ToString() && LabelInf.Rows[i].Cells["pib_ifpick"].FormattedValue.ToString() != "True")
                     {
                         CurrentRowIndex = i;
+                        LabelInf.Rows[i].Selected=true;
                         break;
                     }
                 }