private void DrawGridBody(Graphics g, int y_value) { int x_value; for (int i = 0; i < 5; ++i) { DataRow dr = ((DataTable)wddgv.DataSource).Rows[i + row]; x_value = 0; // draw a solid line g.DrawLine(Pens.Black, new Point(0, y_value), new Point(this.Width, y_value)); foreach (DataGridViewColumn dc in wddgv.Columns) { string text = dr[dc.DataPropertyName].ToString(); g.DrawString(text, this.Font, Brushes.Black, (float)x_value, (float)y_value + 10f); x_value += dc.Width + 5; } y_value += 40; } row += 5; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)