You want to check for isdbnull while using datarow from a datatable/dataset this is how you use it..
C# CODE:
Assuming orow is the datarow you are working with ...
if (!Convert.IsDBNull(orow [5]))
{
// Do some thing
}
else
{
//Do some thing else...
}
Thanks,
Suman
Showing posts with label dataset. Show all posts
Showing posts with label dataset. Show all posts
Subscribe to:
Posts (Atom)