What I want is to have a table having a first column with every row named by me one by one, not binding to some property. But all of the second column should be binded to a property. I cannot do these two with gridview since it only makes binding and does not let me to write something manually. On the other hand, I havent seen any flowdocument table tutorial in which someone mention binding. So what is the proper object suitable to fulfill mentioned two things?
Share
ListViewandGridViewshould meet your requirements. You have the ability to set bindings on theGridViewColumnsby usingDisplayMemberPathor in theCellTemplate. You can also choose not to use bindings in a column.Take this for example:
NameValuePairs is an
ObservableCollection<NameValuePair>andNameValuePairis a view model with aNameandValueproperties. The first column is contains aTextBoxon each row, the second is aTextBlockwith theName, and the third is aTextBlockwith theValue.