Message
From
01/08/2003 19:26:59
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00815997
Message ID:
00816091
Views:
23
Brian,

Considering that BindBack() is virtual in both mmTextBox and mmCheckBox, I have a feeling mmDataGrid was overlooked.

Unless you're calling BindBack() directly, I suggest that you change mmDataGrid's code, making BindBack() virtual and then override it to suit your needs. When Kevin comes back next week, I'm sure he'll weigh in.

---J


>I'm having a problem with the bindback behavior in mmGrid. There are time when I have an editable field that requires numeric or timestamp data, but is null-allowed. But because of the mmGrid.BindBack() method, I get an "System.FormatException" error when the bindback attempts to put an empty textbox value (empty string "") into a timestamp or numeric field in the dataset.
>
>It appears I need to be able to override mmDataGrid.BindBack() so that I can change empty strings to DBNull, but this BindBack() is not an overridable method in mmDataGrid. Shouldn't it be (like mmTextBox, mmCheckBox, etc.)?
>
>If so, will this change be in a release coming soon? Are there any suggestions that would help me handle this in the meantime?
Previous
Next
Reply
Map
View