datagrid runtime formatting

T

Tin Man

I'm creating a datatable and columns at run time. I create the columns like
so....

Dim Col1 As New DataColumn
Col1.ColumnName = "Revenue"
Col1.DataType = System.Type.GetType("System.Decimal")
dt.Columns.Add(Col1)

What I can't find is how to apply an edit mask to a column at run time that
will have the same result as {0:c} and {0:d} does when I specify such at
design time. There doesn't seem to be any property for edit mask.

TIA,
Tin Man
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top