Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2004, 10:39 PM
batak batak is offline
Junior Member
 
Join Date: Nov 2004
Posts: 2
Default how can i type the floting number with 2 digit in dbgrid

Hi everyone,

I have a problem with DBGRid editing. I want to write floating number with 2 digits in dbgrid.

How can i success it? If you help me about it i will be very pleased

See you later
Reply With Quote
  #2  
Old 11-02-2004, 01:26 AM
mshkolnik mshkolnik is offline
Senior Member
 
Join Date: Jul 2001
Posts: 4,195
Default RE: how can i type the floting number with 2 digit in dbgrid

Just set the EditFormat property for your float field:
#.00

and DBGrid will use this mask during edit in column

With best regards, Mike Shkolnik
http://www.scalabium.com
Reply With Quote
  #3  
Old 11-02-2004, 02:21 AM
batak batak is offline
Junior Member
 
Join Date: Nov 2004
Posts: 2
Default RE: how can i type the floting number with 2 digit in dbgrid

Thanks for your help ,

I tried it but it didnt give me a correct result. I want to edit column maximum 2 floting digit and when i exit that cell i want to see that value on my float field with 2 decimal point.

When i write i.e. 2.23565 i want to see 2.24 on my float field but i can see 2.23565

With best regards. Emrah Altuntaž
Reply With Quote
  #4  
Old 11-02-2004, 02:23 AM
mshkolnik mshkolnik is offline
Senior Member
 
Join Date: Jul 2001
Posts: 4,195
Default RE: how can i type the floting number with 2 digit in dbgrid

You need change the DisplayFormat property also for your float field

With best regards, Mike Shkolnik
http://www.scalabium.com
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:25 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.