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

https://social.msdn.microsoft.com/forums/vstudio/en-us/85c5d6d2-1a79-4be7-8af6-7261d4172e74/convert-a-percentage-to-decimal?forum=csharpgeneral

set discount decimal text results both of links.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -