Formatting DataGrid cells and textboxs

  • Thread starter Thread starter Orhan Toker
  • Start date Start date
O

Orhan Toker

Hi,

Is it possible to format a datagrid cell containing string
type data. (For example, i want "2122131199" value to be
displayed as (212)-213-11-99.
Also text boxs hasn't that kind of property and
maskedEditBox is not suitable for data binding.

Heeeeelp!
 
This link should help. I'm not sure if you are asking how to make
pre-existing data show in that format or if you want the users to just type
away and when they leave the column have it format. Either way, this page
will show you how to do it, but there are multiple ways. When the grid
loads, you can iterate through the columns and change the values, you can
wait until the user clicks in the grid or leaves it. Check out the link, if
you still have problems let me know.

Cheers,

Bill

http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q973q
 
Back
Top