Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: DataFormatString property


Message #1 by "Robert Sindall" <rsindall@z...> on Mon, 14 Oct 2002 12:56:57 +0100
http://www.aspalliance.com/aspxtreme/sys/Web/UI/WebControls/BoundColumnClass
DataFormatString.aspx

-----Original Message-----
From: Robert Sindall [mailto:rsindall@z...]
Sent: 11 October 2002 16:45
To: ASPX_Professional
Subject: [aspx_professional] Formatting...


Hi

how can I get a numerical amount like 40000 to appear like 40,000k in here:

<asp:BoundColumn HeaderText="Size" ReadOnly="True" DataField="Size"
DataFormatString="{0:#,####KB}" />

I'm uncertain how the DataFormatString property works.

thanks


---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.

---



  Return to Index