In my c# form I have a data grid view where I want to input both kanji and kana version of a word or sentence, putting them in different columns. For example:
転寝 | うたたね
寝坊 | ねぼう
What I want to achieve is having the second column automatically filled when I commit on the first one. I know there are dictionaries containing kanji readings but for sentences it gets complicated, and also there are many kanji with more than one reading. What I know is that the IME has both informations because while typing I first use hiragana and then convert it to kanji so, is there a way to get the original input of the user?