For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > March 2005 > BoundColumn - DataFormatString in a Multicutural Manner









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author BoundColumn - DataFormatString in a Multicutural Manner
cntams@gmail.com

2005-03-31, 8:58 pm

Hi all,
I have a Web Form and using BoundColumn to bind data to the
datagrid.
I have 2 fields that needs to be formatted. The first one is a
DateTime field and the second one is the currency field.
The following is part of my code, the following shows a new
boundColumn is being created, and the DataFormatString is being
specified. Now, I need to format the currency in a multilanguage
manner. Can someone tell me how to do so in both currency and datetime?

Dim CCBoundColumn As New BoundColumn
With CCBoundColumn
.DataField = eField.ToString
.SortExpression = eField.ToString
.HeaderText = ""
.DataFormatString = "${0:#,###}"
End With
dgTest.Columns.Add(CCBoundColumn)



Thanks
Carl

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com