title: Format TextBox for phone number in WPF
body: <p>I have a DataGrid in a WPF window. How can I display a phone number string column in the DataGrid in a format of "(999)999-9999"?</p>
  
  <p>The Phone number column in the DataGrid uses a TextBlock in the CellTemplate and a TextBox in the CellEditingTemplate. The phone number is stored as a string with no formating such as "9995551234".</p>
  
  <p>Is it possible to display the phone as:(999)555-1234 and edit it as (999)555-1234?</p>