DataGrid dg = new DataGrid();
dg.CurrentCellChanged += new System.EventHandler(dgv_CurrentCellChanged);
private void dgv_CurrentCellChanged(object sender, EventHandler e)
{
}
但我收到错误如何在wpf中动态创建
错误是
错误2 'dgv_CurrentCellChanged'
匹配delegate 'System.EventHandler'
答案 0 :(得分:0)
这一个:
private void dgv_CurrentCellChanged(object sender, EventHandler e) {
}
应该是:
private void dgv_CurrentCellChanged(object sender, EventArgs e) {
}