Convert Percentage to Decimal Format WinForms C# -
any can me little problem.. i'm programing , validating datagridview in c# winforms. have 2 columns in datagridview. 1. discount %. 2. discount decimal.
i want next operation..
i have article , costprice equals $100.00, if put value example 10% in datagridview.rows.column["discount %"].value.. then, automatically converting 10% in decimal, it's mean value in decimal 10% of $100 $10 , value $10 automatically put datagridview.rows.column["discount decimal"].value ... can help, because have no idea how , have headache trying regex not works ? thx in advance.
for automatic conversion use lostfocus on textbox
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.enter.aspx
for decimal value answer help
set discount decimal text results both of links.
Comments
Post a Comment