Avatar of Hagita
Flag for Israel asked on

Format Unbound DataGridView

Hi Experts,
I have an unbound datagrid view, I need to format data from 0.07620000000000000 to 6 digits after decimal. Can that be done by code? my SQL is :
"SELECT TOLP, TOLM,0 AS SEQ, KKD*25.4/1000 AS REQ ,TOLP*25.4/1000 AS PTOL, "_            & "  ,KNO, 0 AS MEASURED FROM BPCSELTF.KDHE"
Visual Basic.NET

Avatar of undefined
Last Comment

8/22/2022 - Mon
Nasir Razzaq

Try the Round function in SQL


Hi Thanks but it does not omit the zeros. I would try the Format function -Do you know how I can specify the format string?
Nasir Razzaq

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Your help has saved me hundreds of hours of internet surfing.