开发者

DataGridTemplateColumn Binding Using a TextBox in WPF with MVVM

I have a DataGrid that is bound to a List (ListOne). Inside the grid I'd like to display an extra TextBox that c开发者_JAVA技巧ontains fields found in another Class that is not the same as the Class used in ListOne.

I've done this before with a ComboBox using the DataGridTemplateColumn, the problem is I'm not sure how the Binding would work when using a TextBox?

ListOne contains code and description which is bound and displays correctly. My SQL Stored Procedure returns extra values using a Join, which I'd like to display as editable fields ListOne.

Any ideas?


You should probably try to bind the DataGrid directly to the joined data as i imagine that doing joins directly in the cells may be difficult and round-about.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜