I have an unbound DataGrieView on a Windows form (VS 2005) and I have added
a column to a DataGridView
Dim textCol As New DataGridViewTextBoxColumn
textCol.Name = "ContactPhone1"
dgcontacts.Columns.Insert(.Columns.Count, textCol)
dgcontacts.Columns("ContactPhone1").DefaultCellSty le.Format = "(000)
000-0000"
When the grid is displayed on the form, there is no formatting in the cell.
What am I doing wrong and How can I fix it?
Thanks