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;}
 

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