如何添加CRUD操作在WPF第二个实体How to Add CRUD Operations to a Second Entity in WPF

- 此内容更新于:2015-01-06
主题:

原文:

I'm working on a WPF program, I use EF and MVVM. I have two entities : Student and Grade. Each student can have multiple grades. I have one window and one ViewModel(Student). I can add/update/delete student info using the program. When I add grades from database, I can see grades on the screen. I don't know how to modify my program to enable user enter,modify,delete grades on that screen. Can you give me some tips or advices about that? Here is my program currently looks like. Thanks.enter image description here

mayowa ogundele的回复:让你的网格包含一个编辑列填充文本框,点击

(原文:Let your grid include an edit column that Populate the textfield when clicked)