|
|
@@ -296,5 +296,23 @@ namespace UAS_MES.Make
|
|
|
{
|
|
|
Screen.PerformClick();
|
|
|
}
|
|
|
+
|
|
|
+ private void BatchProductDGV_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)
|
|
|
+ {
|
|
|
+ bool mouseOver = e.CellBounds.Contains(this.PointToClient(Cursor.Position));
|
|
|
+ if (e.ColumnIndex > 0)
|
|
|
+ {
|
|
|
+ if (BatchProductDGV.Columns[e.ColumnIndex].Name == "mss_remain")
|
|
|
+ {
|
|
|
+ SolidBrush solidBrush = new SolidBrush(Color.FromArgb(51, 153, 255));
|
|
|
+ e.Graphics.FillRectangle(mouseOver ? solidBrush : Brushes.LightSeaGreen, e.CellBounds);
|
|
|
+ Rectangle border = e.CellBounds;
|
|
|
+ border.Width -= 1;
|
|
|
+ e.Graphics.DrawRectangle(Pens.White, border);
|
|
|
+ e.PaintContent(e.CellBounds);
|
|
|
+ e.Handled = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|