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.
我在我的 Web 应用程序中使用 LinqToExcel 来获取 WorksheetNames 和列名,现在我想在 gridview 中显示一些数据。有没有使用 LinqToExcel 创建数据集的方法。
如果您使用 LinqToExcel,则必须手动创建数据集。
gridview.ls 是否有 DataSource 属性?如果是这样,那么您可以让 LinqToExcel 从电子表格中检索对象列表并将 DataSource 设置为该列表。