I have a number pad with buttons containing text from 0-9 and a button to add a decimal point "." and when you click the button, it adds the text to the datagridview cell. However, is there any way to limit the input so that you cannot add more than two numbers after the decimal point (as the datagridview column represents the price)?
Something like a rule in the button_click event
if (ddr.Contains(".") && ddr.EndsWith(".##"))