DataGridTextBoxColumn Formatting...

  • Thread starter Thread starter John M.
  • Start date Start date
J

John M.

I am able to successfully use the datagrid with design
time DataTablesStyles and custom DataGridTextBoxColumns
formatted for dates and currency just fine using the
format specifier or "d" for short date and "c" for
currency columns. I have spent 1 whole day just trying to
figure out how to format columns in the datgrid for phone
#s and zip codes??? Arrg!(That's pirate lingo matey!)

What DataGridTextBoxColumn format property works for a
phone # or Zip Code? What do I need to do to format for
(###) ###-#### (phones) and #####-#### (U.S. Zip codes)?
I tried the custom format property of {(###) ###-####} but
that did not make any noticeable effect on the displayed
output of the datagrid.

I read about regular expressions but nothing works in
the datagridtextboxcolumn Format property. Thanks in
advance for the response...
 

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

Back
Top