Testing for a null value before accessing

  • Thread starter Thread starter Simon Harvey
  • Start date Start date
S

Simon Harvey

Hi everyone,

I'm hoping someone can tell me the best way to test for null values in a
DataRow object before accessing the field in question. I have found one
example, but it seemed quite verbose and I'm sure in the past I've seen more
elegant solutions

Thanks in advance for any help

Simon
 
If you are using a typed dataset, then the typed datarow has a special
IsMyFieldNull method for each field.

If you are not using a typed dataset, why not?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top