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

how cascading filling comboboxes in datagrid(wpf) with datatable and dataset

$
0
0
I have three tables in sql server statesincountries(countryid, stateid) countries(countryid,countryname) states(stateid,statename) correspondingly three tables in dataset created in C#(WPF). the data grid has two columns for countryid, stateid of statesInCountries table and each column has DataGridTemplateColumn--DataGridTemplateColumn.CellTemplate--datatemplate--combobox. the first column combobox is bind to countries.defaultview and second column to states.defaultview. the first column combobox is working fine but when I change the country in a particular row the combobox containing the states does not get populated with states of that country in aforesaid row. please help....


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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