问题标签 [itemsource]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - 当我将数据表对象发送到分页类方法时出现错误消息“源不包含 DataRows”
我有一个带有 DataGrid 的用户控件。自从用户控件类中的 DataGride 分页函数以来,一切都很好。我决定将分页函数移到一个类中。这是我的代码
在 UserControl 的类中,我使用构造函数实例化 Pagenation 类的对象,该构造函数采用分页所需的所有变量。
问题是我仍然收到此错误消息!
源不包含 DataRows 并且错误指向此行中的 refreshDataGrid 方法
请注意,函数 refreshDataGrid 中的消息框显示我有 50 行。