You need to use a helper method.
Check out this url :

http://www.datagridgirl.com/faq.aspx