Saturday, November 23, 2013

WPF Application trying to bind my data to a textbox.

WPF has a seperate Forum, you get better answers there:


http://social.msdn.microsoft.com/Forums/en-US/wpf/threads


It looks like you do not use a MS GridView here, but a third party/selfwritten one. You might want to ask whoever wrote this how to use it or maybe read the Documentation.


If I understand you right the Column shows the data in a Label or other readonly Control. How to change this behavior should be in the Documentation of the GridView you use.


As I understand you it you bind a List<Company_Control> to the UI (by butting it into the DataContext of the GridView). It could be that your Company_Control class is not exposing any public set accessors, wich would make it impossible for the UI to bind in TwoWay or TargetToSource mode.


Note that WPF is strongly designed to use the MVVM Design Pattern. I can only advise to use it, as many WinForms techniques will not work in WPF. I wrote a short intorduction into it here:



Let's talk about MVVM




Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.


No comments:

Post a Comment