Link to home
Start Free TrialLog in
Avatar of DeniseGoodheart
DeniseGoodheart

asked on

DataGridView Format Phone Number

Good Day:

I am creating a WinForms application using VS.NET 2005 and VB.NET.  I would like to format my phone number within my DataGridView control called grdVendor.  The following code does not work:
  grdVendor.Columns("Phone").DefaultCellStyle.Format = "(###)###-####"
Any Suggestions?
Thank You,
Denise
SOLUTION
Avatar of Shaun Kline
Shaun Kline
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 60MXG
60MXG

format that in the Database
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DeniseGoodheart

ASKER

I have not had a chance to go over the suggestions because I had to work on something else, but I plan on doing this next week.

Thanks Experts.