Hi,
I am working on a vb6 to vb.net migration project.
I have a datagridview.
My requirement is to show the $ sign,if the user entered numeric data in a cell and if the user presses the "-" key, the - sign should come infront of the data (like -$34) and if again user presses "-" key it should remove the - sign (like $34).
I have managed to do this in a round about way.like,I am changing a global variable value to TRUE if user presses "-" key (using the keycode). and in the cell leave event,if this variable is true and cell value does not have any "-" sign then concatinating "-" sign with the cell value.
This method is not correct and there should be a proper and easy method. I am searching for that. Any help appreciated in this regard.
Thanks,
Sumith
I am working on a vb6 to vb.net migration project.
I have a datagridview.
My requirement is to show the $ sign,if the user entered numeric data in a cell and if the user presses the "-" key, the - sign should come infront of the data (like -$34) and if again user presses "-" key it should remove the - sign (like $34).
I have managed to do this in a round about way.like,I am changing a global variable value to TRUE if user presses "-" key (using the keycode). and in the cell leave event,if this variable is true and cell value does not have any "-" sign then concatinating "-" sign with the cell value.
This method is not correct and there should be a proper and easy method. I am searching for that. Any help appreciated in this regard.
Thanks,
Sumith