By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,929 Members | 634 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,929 IT Pros & Developers. It's quick & easy.

Format Cell in DataGridView

P: n/a
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)

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?

Apr 3 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.