代码如下:
public class DataColorColumn : DataGridTextBoxColumn
{
protected override void Paint(System.Drawing.Graphics g, System.Drawing.Rectangle brouds,
System.Windows.Forms.CurrencyManager source, int rowNum, System.Drawing.Brush backBrush,
System.Drawing.Brush foreBrush, bool alignToRight)
{
try
{
}
catch
{
/* empty catch */
}
finally
{
base.Paint(g, bounds, source, rowNum, backBrush, foreBrush, alignToRight);
}
} protected override void PaintText(
Graphics g,
Rectangle bounds,
string text,
bool alignToRight
)
{
}
}编译始终提示PaintText出错,DX看看是什么原因。
public class DataColorColumn : DataGridTextBoxColumn
{
protected override void Paint(System.Drawing.Graphics g, System.Drawing.Rectangle brouds,
System.Windows.Forms.CurrencyManager source, int rowNum, System.Drawing.Brush backBrush,
System.Drawing.Brush foreBrush, bool alignToRight)
{
try
{
}
catch
{
/* empty catch */
}
finally
{
base.Paint(g, bounds, source, rowNum, backBrush, foreBrush, alignToRight);
}
} protected override void PaintText(
Graphics g,
Rectangle bounds,
string text,
bool alignToRight
)
{
}
}编译始终提示PaintText出错,DX看看是什么原因。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货