Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: 'Data Format String' in DataGrids


Message #1 by "satish chandra" <sat_chand@h...> on Fri, 19 Apr 2002 12:25:56
thanx for your help



> Try this,

Add this into your asp:boundcolumn DataFormatString=3D"{0:d}".  Of =
course,
you need to supply the correct format.  Refer to the VS help link.
(ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemglobalizationnumberfo
rmatinfoclasstopic.htm)

-Tri

-----Original Message-----
From: satish chandra [mailto:sat_chand@h...]=20
Sent: Friday, April 19, 2002 7:26 AM
To: ASPX_Professional
Subject: [aspx_professional] 'Data Format String' in DataGrids



Hi there,

I want to restrict the values in my DataGrid columns to 2 or 3 decimal=20
places, currently they are upto 10 decimal places. How can I do it ? The

values from the DataGrid comes from a Stored Procedure. Can I use=20
the 'Data Format String' property of the Gird Columns.. if so how ?

thanx in advance :)

Satish
---
Change your mail options at http://p2p.wrox.com/manager.asp or=20
to unsubscribe send a blank email to


  Return to Index