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?
 
Back
Top