Click here to Skip to main content
15,918,516 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

   Dim templateCol As New DataGridTemplateColumn With {.Header = "Items"}
templateCol.CellTemplate = XamlReader.Load("<DataTemplate xmlns=''" & vbCr & vbLf & vbCr & vbLf & "xmlns:x=''><ComboBox x:Name='ddl' ItemsSource='{Binding Source={StaticResource ddldata}}' DisplayMemberPath='ProductName' /> </DataTemplate>")
Updated 9-Jun-11 22:57pm

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