Site Search:
Sign in | Join | Help
4Penny.net

ASP.NET

Notes, Tricks and Tips on ASP.NET Coding

Formatting for Datagrid template column fields

If you need to format a datagrid template column fields, it can be hard to find the documentation.

Text='<%# DataBinder.Eval(Container.DataItem, "qtyRemaining", "{0:F0}")%>'

will make the column format as floating point, zero decimal places.

Published Jan 17 2007, 12:59 PM by Steve Gray
Filed under: ,

Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add

About Steve Gray

Steve is a seasoned (translate: old) developer in VB and ASP.NET. He spends most of his time in Dynamics GP, writing custom mods for consulting firms. Crystal reports, eConnect, VS Tools for Dynamics... anything that comes along.