T
troutbum
I am creating a dataset by using a stored procedure. When I bind the
dataset to the datagrid I get the following Error "Cast from type
'DBNull' to type 'String' is not valid." I used a sqlreader to verify
that the field was returning "", as per my stored procedure
IsNull(field, '') as Field returned. All the other fields returned
are integers and have a values associated with them as well. I tried
to run the debugger to see if the dataset is empty, but it doesn't
appear to be. I also checked the datagrid columns and stored
procedure fields to also make sure they match. Thanks for any
direction.
Troutbum
dataset to the datagrid I get the following Error "Cast from type
'DBNull' to type 'String' is not valid." I used a sqlreader to verify
that the field was returning "", as per my stored procedure
IsNull(field, '') as Field returned. All the other fields returned
are integers and have a values associated with them as well. I tried
to run the debugger to see if the dataset is empty, but it doesn't
appear to be. I also checked the datagrid columns and stored
procedure fields to also make sure they match. Thanks for any
direction.
Troutbum