Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
数据网格的数据源是一个依赖下拉列表值的 LINQDataSource。此外,我想使用页脚插入新记录 - 所以我不想使用空的数据集模板。我试图找到一种方法来始终显示页脚,无论数据源是否为空。
编辑:有没有办法在 LinqDataSource 中创建该类型的空/不可见对象?
检查以下文章:
http://weblogs.asp.net/joewrobel/archive/2008/01/30/a-more-elegant-solution-to-display-gridview-header-and-footer-when-the-data-source-is-空的.aspx