This is a migrated thread and some comments may be shown as answers.

Column format

1 Answer 39 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 1
Hans asked on 24 Mar 2011, 09:05 PM
Hi all !

I want to format a column in a rad grid with phone number format

 

(###) ###-#### ext.####}
I Wrote

 

 

dgv.MasterTemplate.Columns[

"PHONE1"].FormatString = "{0:(###) ###-#### ext.####}";

but is not working !

How I can do this ?

Hans

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 25 Mar 2011, 09:14 AM
Hello Hans,

Please take a look at the Demo application. There you can find a sample demonstrating GridViewMaskBoxColumn and phone number formats -- GridView->Columns->Column Types.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
Telerik WinForms MVP
Tags
GridView
Asked by
Hans
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Share this question
or