Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to bind static resource to combobox , this combobox inside a datagrid generated dynamically

VB
   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)
Posted
Updated 9-Jun-11 22:57pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900