wpf - XamDataGrid Collection Column -


Is there a way to bind XamDataGrid from the collection column in DataSource?

What am I trying to do to show all the items in a specific column collection in a grid area? (Using the appropriate template).

Hope it all makes you understand. Let me know if you need to clarify things a bit more then tell me.

I got the answer in the end. To host the collection, I used only one wrapper class and binded the ropper class property column instead of the collection property.

After that, making the right template is very easy.

Here's an example:

  & lt; Style x: key = "validation style" target type = "{x: type igDP: CellValuePresenter}" & gt; & Lt; Setter Estates = "Template" & gt; & Lt; Setter.Value & gt; & Lt; ControlTemplate TargetType = "{x: type igDP: CellValuePresenter}" & gt; & Lt; ContentControl DataContext = "{TemplateBinding Value}" & gt; & Lt; ItemsControl ItemsSource = "{Binding Assumptions}" & gt; & Lt; ItemsControl.ItemTemplate & gt; & Lt; DataTemplate & gt; & Lt; Text block text = "{binding validation name}" /> & Lt; / DataTemplate & gt; & Lt; /ItemsControl.ItemTemplate> & Lt; / ItemsControl> & Lt; / ContentControl> & Lt; / ControlTemplate & gt; & Lt; /Setter.Value> & Lt; / Setter & gt; & Lt; / Style & gt;  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -