WPF Datagrid. format column in code

Sep 17, 2009 at 3: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?

Thanks

Coordinator
Sep 18, 2009 at 8:36 PM

Hi cheers7,

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

http://msdn.microsoft.com/en-us/library/system.windows.data.ivalueconverter.aspx

 

Thanks,

Saied K.