BoundColumn - DataFormatString in a Multicutural Manner

C

cntams

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top