From what i can see there, i can add my control in the XAML. But i want a specific control to be added on that column for each row. That is, each row will have a different control, dependig on information known only at runtime.
Is there a way to do this? Thank you in advance.
Imported from legacy forums. Posted by ovistanciu (had 250 views)
You can do it in your code (C# or VB): Look at example in Documentation: ms-help://Xceed.Wpf.DataGrid/Documentation/Xceed.Wpf.DataGrid~Xceed.Wpf.DataGrid.DataGridCollectionView.html in 2nd example, when creating DataGridCollectionView,
DataGridCollectionView view = new DataGridCollectionView( typeof( Xceed.Wpf.DataGrid.DataRow ) ); view.ItemProperties.Add( new DataGridItemProperty( ColumnName, typeof( YourControl Type ) ) ); view.ItemProperties.Add( new DataGridItemProperty( ColumnName, typeof( TypeOfYourControl ) ) ); And manually add items to your CollectionView.
Imported from legacy forums. Posted by Lena (had 3793 views)