C1DataGrid自动生成列,C1DG_AutoGeneratingColumn方法中置换为中文列
private void C1DG_AutoGeneratingColumn(object sender, C1.WPF.DataGrid.DataGridAutoGeneratingColumnEventArgs e)
{
Dictionary<string, string> dic = new Dictionary<string, string>();
dic.Add("DayOilOperated", "措施后日产油");
dic.Add("DayWaterOperated", "措施后日产水");
dic.Add("DayPumpOilOperated", "措施后抽汲油");
dic.Add("IsEffective", "有效判断");
foreach (KeyValuePair<string,string> item in dic) //修改列名
{
ToChineseColumnName(e, item.Key, item.Value);
}
}
不知为何多出来一个Error列?
|