|
|
@@ -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;
|
|
|
}
|
|
|
}
|