【发布时间】:2010-10-08 09:54:45
【问题描述】:
我已成功将 Excel 数据与 DataGridView 控制器绑定。 然后我尝试将 DataGridView 内容保存到 xml 文件。 我想实现为 belwo,但抛出异常。 如何使用 DataGridView 修复它? (使用VS2008)
// I tried to implement using this style.But throw exception.
DataSet ds = (DataSet)(dataGridView1.DataSource);
// One online tutorial posted as this style below
DataSet ds = (DataSet)(dataGrid1.DataSource);
【问题讨论】:
标签: c# datagrid datagridview c#-3.0