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.
Printable View
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.
Don't post the same question multiple times.
http://www.vbforums.com/showthread.php?t=520251
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.
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.