🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.database.dotnet
1 messages
1 total messages Started by Brigitte Spatz Thu, 03 Aug 2006 16:08
Object cannot be cast from type DBNull to other types
#103
Author: Brigitte Spatz
Date: Thu, 03 Aug 2006 16:08
14 lines
1645 bytes
I have three checkboxes on my form, all of which are bound to columns of  
type bit in an SQL Server DB like:
     chbODMPurpose.DataBindings.Add('Checked', dv, 'fld_Purpose'); //dv is  
a dataview
Things are fine with one of these checkboxes, however, when I try to  
display the tab pages where one of the other two are contained, I get  
"Object cannot be cast from type DBNull to other types". If I disable the  
above line where databinding is executed I can display the tab page, so  
there's clearly something missing/wrong in either my databinding or my  
table. Just where and what???

TIA.

Brigitte
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads