detect which item cursor is over in winform datagridviewcombobox

91 Views Asked by At

I have a datagridview that contains a column of datagridviewcomboboxs. An adjacent column needs to be updated based on the item the mouse is currently over (prior to selecting it. User selections are already handled). Ultimately, I am just trying to show the user what units are associated with the item the mouse is over to help with their selection.

For example, in the attached image when the user moves the mouse from the second item in the datagridviewcombobox to the third, the adjacent column should reflect an associated string that is dependant on the combobox item. So in this case "g" may become "m/s".

datagridview image

I have been trying to find a solution for a while now. It is probably something simple but I have not been able to make progress.

0

There are 0 best solutions below