I have an datagridview with several comboboxes, and each combobox depends on the "left" one.
I need to access the events of the combobox to manage them. like (if would possible)
if Grid.Combo1.SelectedChangeCommited then
Grid.Combo2.SelectedIndex = 1
end if
(just an exemple)
But i cant get each combo either.
I tryied that "removeHandle" and "addHandle" thing, but it get te event to every combo in the row.
Indeed, if anyone could tell me how to do this i would apreciate. I can do things like (inside the event "addHandle" to SelectedIndexChanged)
If grid.currentCell.ColumnIndex = 2 then
Grid.combo2.SelectedIndex = 1 (impossible) <-----------------------------------------------
end if |
to know which combo im operating, but its confusing like that, and also i cant do what i need, like |
Plz help me, im in huge hurry.
I need to access the events of the combobox to manage them. like (if would possible)
if Grid.Combo1.SelectedChangeCommited then
Grid.Combo2.SelectedIndex = 1
end if
(just an exemple)
But i cant get each combo either.
I tryied that "removeHandle" and "addHandle" thing, but it get te event to every combo in the row.
Indeed, if anyone could tell me how to do this i would apreciate. I can do things like (inside the event "addHandle" to SelectedIndexChanged)
If grid.currentCell.ColumnIndex = 2 then
Grid.combo2.SelectedIndex = 1 (impossible) <-----------------------------------------------
end if |
to know which combo im operating, but its confusing like that, and also i cant do what i need, like |
Plz help me, im in huge hurry.