[Mono-dev] Object data source update fails on nullable field.

Marek Habersack mhabersack at novell.com
Tue Dec 16 15:39:18 EST 2008

On Tue, 2008-12-16 at 01:43 -0800, Vladimir Krasnov wrote:
> Hi Marek,
Hey Vladimir,

> I've found some problems in updating row in GridView control that bound
> to ObjectDataSource. 
> 1. ObjectDataSource fails to convert values to Nullable<> properties
> while creating data object.
> 2. BoundField should return null when no value entered by the user, it
> returns empty string and ObjectDataSource fails to convert it.
> Please review attached patch that fixes both these problems, also find
> attached test cases.
In the BoundField chunk, please store box.Text in a variable, so that
the getter is not called twice. Otherwise - ok to check in, thanks!



More information about the Mono-devel-list mailing list