This project is read-only.

The autofilter functionalitty does not admit as a property an objtet of type System.Nullable<>

Feb 5, 2013 at 4:59 AM
Hi Team,

I have an issue with the autofilter, when the popup with the unique values is showed, I try to select one of them, but when I do that, the code throws an exception, that is because one of the properties in the sourceitems is of type System.Nullable<>, I suppose that is caused because the System,Data.DataTable does not support Nullable objects, can you change the way that the filter works? Or any other workaround please
Feb 5, 2013 at 5:55 AM
Hi,

I am going on vacation. Will be back on Friday.
Will try to fix it on weekend.

Regards,
Bpoojary
Feb 10, 2013 at 4:42 PM
Hi Devtelco,

I have fixed the issue, kindly take latest code and try again.
I have changed it in change set number 21961.

Regards,
bpoojary
Feb 10, 2013 at 4:45 PM
Hi,

This code helped me to fix the issue,
dt.Columns.Add(pi.Name, Nullable.GetUnderlyingType(pi.PropertyType) ?? pi.PropertyType);

Regards,
bpoojary