110,561
社区成员
发帖
与我相关
我的任务
分享
DataTable dtView = new DataTable();
...
dtView.Rows["SUM"].Expression = expression;
...
this.dataGridView1.DataSource = dtView;
private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
this.dataGridView1[e.ColumnIndex, e.RowIndex].Style.ForeColor = Color.Red;
}