connection

来源:互联网 发布:方法重载java 编辑:程序博客网 时间:2024/05/08 11:52
            
  private   void   dataGridView1_RowPostPaint(object   sender,   DataGridViewRowPostPaintEventArgs   e)  
                  {  
                          using   (SolidBrush   b   =   new   SolidBrush(dataGridView1.RowHeadersDefaultCellStyle.ForeColor))  
                          {  
                                  e.Graphics.DrawString(Convert.ToString(e.RowIndex   +   1,   System.Globalization.CultureInfo.CurrentUICulture),   e.InheritedRowStyle.Font,   b,   e.RowBounds.Location.X   +   20,   e.RowBounds.Location.Y   +   4);  
                          }  
   
                  } 
原创粉丝点击