瀏覽代碼

加宽列头

章政 6 年之前
父節點
當前提交
d5b748aea6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UAS-出货标签管理(吉利通)/CustomControl/DataGridViewWithSerialNum.cs

+ 1 - 1
UAS-出货标签管理(吉利通)/CustomControl/DataGridViewWithSerialNum.cs

@@ -15,7 +15,7 @@ namespace UAS_LabelMachine.CustomControl
 
         protected override void OnRowPostPaint(DataGridViewRowPostPaintEventArgs e)
         {
-            e.Graphics.DrawString((e.RowIndex + 1).ToString(), e.InheritedRowStyle.Font, solidBrush, e.RowBounds.Location.X + 15, e.RowBounds.Location.Y + 5);
+            e.Graphics.DrawString((e.RowIndex + 1).ToString(), new System.Drawing.Font("宋体", 8.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))), solidBrush, e.RowBounds.Location.X + 5, e.RowBounds.Location.Y + 5);
             base.OnRowPostPaint(e);
         }