0
我在拖动reportviewer控件的滚动条以尝试触发滚动事件 ,但它不起作用。 DataGridView控件显示消息框,如下所示的源代码。ReportViewer控件滚动事件未触发
private void reportViewer1_Scroll(object sender, ScrollEventArgs e) {
MessageBox.Show("reportviewer is scrolling!");
}
private void dataGridView1_Scroll(object sender, ScrollEventArgs e) {
MessageBox.Show("datagridview is scrolling!");
}
有没有人遇到过这个问题?
谢谢。
UI - Windows窗体 语言 - C# OS - Windows 7的64位 工具 - Visual Studio的终极2013 + .Net框架4.6.2