Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. <DataGrid x:Name="Docs" Margin="29,211,25,66" IsReadOnly="False" AutoGenerateColumns="False"
  2. DataContext="{Binding Source={StaticResource Rutine}}" CanUserReorderColumns="False"
  3. ItemsSource="{Binding Documents,Mode=TwoWay}">
  4. <DataGrid.Columns>
  5. <DataGridTextColumn Header="Document Type" Binding="{Binding DocumentType}" />
  6. <DataGridTextColumn Header="Document (Name)" Binding="{Binding DocumentName}" /></DataGrid.Columns></DataGrid>
  7.  
  8. public IList<CSDoc> Documents
  9. {
  10. get
  11. {
  12. return _Documents;
  13. }
  14.  
  15. set
  16. {
  17. _Documents = value;
  18. NotifyPropertyChanged("Documents");
  19. }
  20. }
  21.  
  22. public class CSDoc
  23. {
  24. public string DocumentType{ get; set; }
  25. public string DocumentName{ get; set; }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement