|
-
May 3rd, 2008, 12:29 AM
#1
Thread Starter
Addicted Member
formatting datagridview
Hi All.
DGV column Contact has value email address and phones. Is it possiable to format that column if email address it will like regular string and if phone number it will formating like (###) ###-####.
Thanks.
-
May 3rd, 2008, 12:32 AM
#2
Re: formatting datagridview
-
May 4th, 2008, 01:24 PM
#3
Thread Starter
Addicted Member
Re: formatting datagridview
Hi jmcilhinney
Thanks for replay. Problem formatting ony phone data in datagridview I sold. In that post I'm would like to know if in datagridview same column hold information such as phone and email address how to format that phone data will formatting like (xxx) xxx-xxxx and email address data will look like email address. Is it possiable formatting phone and email at same column?
Thanks.
-
May 4th, 2008, 06:01 PM
#4
Re: formatting datagridview
I didn't realise you meant the same column. I'm not sure it's a good idea, but if that's what you want to do then you should be able to just handle the CellValueChanged event, test whether the value is an Integer or not and, if it is, apply the phone number format string by setting the cell's Style.Format property.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|