[英]Best way of editing entire row in a datagrid on wpf?
What is the best way of editing a entire row on datagrid. 在datagrid上编辑整个行的最佳方法是什么。 Datagrid is bind to sql table.
Datagrid绑定到sql表。 I would like to edit the changes and commit the changed field.
我想编辑更改并提交更改的字段。
If possible a simple and easy solution for this problem would be gr8 if anyone could suggest me. 如果可能的话,如果有人可以建议我,一个简单而简单的解决方案将是gr8。
Thanks in advance 提前致谢
I quit using DataGrid for editing. 我退出使用DataGrid进行编辑。 I use the ListView then provide then provide a GridView as the ListView.View.
我使用ListView,然后提供然后提供GridView作为ListView.View。 Inside the GridView you can create GridViewColumns with CellTemplates.
在GridView内部,您可以使用CellTemplates创建GridViewColumns。 The last column of each GridView row is a button to delete that row.
GridView每行的最后一列是删除该行的按钮。 Instead of supporting a browse and edit mode, I just support an edit mode.
我不支持浏览和编辑模式,而仅支持编辑模式。 The application moves more fluidly and I don't have any of the headaches that comes along with working with the DataGrid.
该应用程序的运行更加流畅,使用DataGrid不会伴随任何麻烦。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.