WPF Datagrid. format column in code

Sep 17, 2009 at 4:06 AM

I have to format several columns in code. (example 2232323.45 to 2,232,323.45). I am adding several columns during run time and I can not program it in xmal. 

I searched a lot but I couldn't find the answer. Can any one in this forum answer please?


Sep 18, 2009 at 9:36 PM

Hi cheers7,

You can use a binding along with a converter.  Please see link below for example,




Saied K.