Binding Converter at run time with DataGrid

Aug 31, 2009 at 12:33 PM

I have a Datagrid bind to a IList dynamically. In the grid I have a column of DateTime type. I need to replace all DateTime.MinValue in DateTime column with empty values. I cannot replace values in List as DateTime cannot store null or empty values. I have to use Converter class.

I am binding grid with the list and generating columns dynamically. How can I bind converter dynamically?