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

Get value of the DataGridComboBoxColumn

$
0
0

Hi. I want to get the value of the DataGridComboBoxColumn... i have tries many methods and finally got this one working...

ComboBox assessmentBox = dgAssesments.Columns[i].GetCellContent(dgAssesments.ItemContainerGenerator.ContainerFromIndex(j) as DataGridRow) as ComboBox;

and then got selected item form assessmentBox... but i think this is not the right way to do it... i think this is very complicated... so can you tell me the right way ?


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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