LLBLGen Pro Version: 2.5 Final, December 5, 2007
Runtime Library Version: 2.5.7.1214
Code Generation: C#, .NET 2.0, SelfServicing
Database: SQL Server 2005
In a WinForms application I have a DataGridView that is bound to an EntityCollection via a BindingSource. The DataGridView is auto-generating its columns based on the EntityCollection.
The problem I'm having is that when a new row is added to the grid, the cell value for columns that are bound to integer fields in the EntityCollection is automatically being defaulted to 0, and the cell value for columns that are bound to decimal fields is automatically being defaulted to 0.0. I don't want this to happen because 0 is not a valid value for the fields per my business logic. I'd like the cell to be null or blank to begin with. How can I change this behavior?
Thanks.
Bret