E
Edward Bills
I'm having some trouble with a typed dataset that contains fields that
should technically be considered null. I've loaded my typed dataset from SQL
server. One particular table contains only one row. It has two fields:
Agency and CaseType. In the SQL Server table, the Agency field has a value,
but the CaseType field is null. In my typed dataset, I can read the Agency
value, but any attempt I have made to read, validate, or even reference the
CaseType field throws a runtime exception.
What am I missing? How can I check to see if this field is empty before I
try and use it? I realize that I can deal with this by throwing a Try Catch
around every place where I do anything with my fields, but as you can see
that sounds pretty silly.
Help?
Thanks.
should technically be considered null. I've loaded my typed dataset from SQL
server. One particular table contains only one row. It has two fields:
Agency and CaseType. In the SQL Server table, the Agency field has a value,
but the CaseType field is null. In my typed dataset, I can read the Agency
value, but any attempt I have made to read, validate, or even reference the
CaseType field throws a runtime exception.
What am I missing? How can I check to see if this field is empty before I
try and use it? I realize that I can deal with this by throwing a Try Catch
around every place where I do anything with my fields, but as you can see
that sounds pretty silly.
Help?
Thanks.