i have combobox in datagrid (sourse in mysql (web))
how i can get value in select?
<ComboBox SelectionChanged="status_SelectionChanged".........
c#
private void status_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
this here
}
how???
and how to get the value in another column, but in this line?
column_one column_two
value1 value2
Is change to column two, how getting column one?
update:
my items
<ComboBox.Items>
<ComboBoxItem>New</ComboBoxItem>
<ComboBoxItem>Cancel</ComboBoxItem>
</ComboBox.Items>
How about this solution?
If you need to get value in other column but in same row, you can make new event for cells of your DataGrid and take needed value something like that
Where var1 is a row number and var2 column number.
When I have to use Datagrid with complex cells, i save row and column number of each element (ComboBox in your case) in .Tag property, and eject it for determine cell number.