DataRow Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am using a datarow in my application and I am looking for the best way to
test if a field is null or not. Can someone give me any suggestions?

Thanks
 
Hi,

I am using a datarow in my application and I am looking for the best
way to test if a field is null or not. Can someone give me any
suggestions?

Do you mean other than checking whether a field equals DBNull.Value?
 
Like Soren mentions, check for DbNull if(IsDbNull(dro(ColumnIndex)){//do
something;}
 
Back
Top