Setting selected UOM on Part Maintenance

For 99% of our parts, there is only one UOM Code, ‘EA’.

For the other 1% there are a couple of other UOM codes as well as ‘EA’, one example being ‘BOX’.

We’ve had issues where they would edit UOM details for a part assuming they were editing ‘EA’ but for these 1% the default selected UOM is ‘BOX’ because of our friend the alphabet.

I’ve been tasked with switching the selected UOM to ‘EA’ whenever they select a new part but I’m struggling to work out how.

I’ve worked through different events on the views, the UOM code text box and the datagrid and then selecting the ActiveRow of the datagrid but none of my attempts have worked.

Has anybody attempted something like this before with success?