在gridview单元格中绘制一条垂直线

时间:2013-03-02 18:44:33

标签: c# gridview

我想在gridview中将给定单元格的值划分为三个而不使用“|”但是垂直线是gridview中列的长度。

for (int i = 0; i < subjectCount; i++)
{
    TableCell totals = new TableHeaderCell();
    totals.ColumnSpan = grid.Columns.Count - 1;
    totals.BackColor = System.Drawing.SystemColors.ControlDark;// System.Drawing.Color.FromArgb(#c0c0c0);
    totals.ForeColor = System.Drawing.Color.White;
    totals.Font.Size = FontUnit.Medium;
    totals.Font.Bold = true;

    //totals.Text = "40|60%|100%"; would love to display and image in between them like 40-vertical image-60-vertical image-100

    totals.Text = "40 | 60 | 100";

    row.Cells.Add(totals);

    t.Rows.AddAt(1, row);
}

0 个答案:

没有答案
相关问题