Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

combobox in datagrid wpf

$
0
0

I have a DataGridTemplateColumn containing a combobox in its datatemplate in a datagrid wpf. the combobox has a name ie x:name="teh_cdcombo" and a selectionchanged event handler associated with this combobox. I got its reference in c# as this.columnname.

CellTemplate.LoadContent().SetValue(

ComboBox.ItemsSourceProperty, myDataSet.tablename.DefaultView);

but it is not working. can anyone help me?.

 

 

 


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>