![](/img/trans.png)
[英]Gridview row.Cells[i].Findcontrol finding control in wrong Cell
[英]How do I get the datagrid row.cells value, I'm changing from winforms code to wpf?
我需要在WPF中将WinForms框架dataGridView.rows和row.Cells转换为dataGrid。
我已经更改了代码dataGridView1.DataSource = dt; 到dataGrid1.ItemsSource = dt.DefaultView for WPF,然后在WPF xaml表单设计上添加了dataGrid Itemsource =“ {Binding}”。 dataGrid1显示数据。
我被卡住的是参数化查询插入需要这些dataGrid行(项目),以便可以获取行单元格?
我自己解决了:)
解决了这个问题,因此结果证明我是否使用EF6并绑定表正确地分配了每种数据类型,以匹配从其工作表绑定的内容。 您还可以使用SpreadsheetLight,这比互操作更快。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.