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