Dim templateCol As New DataGridTemplateColumn With {.Header = "Items"} templateCol.CellTemplate = XamlReader.Load("<DataTemplate xmlns='http://schemas.microsoft.com/client/2007'" & vbCr & vbLf & vbCr & vbLf & "xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'><ComboBox x:Name='ddl' ItemsSource='{Binding Source={StaticResource ddldata}}' DisplayMemberPath='ProductName' /> </DataTemplate>") dtg.Columns.Add(templateCol)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)