Check to see if dataset row is null
How can I check to see if a dataset row is null?
Thanks in advance!!
If DataSet.Tables(0).Rows(0).Item("FieldName") Is DBNull.Value Then
if (DataSet.Tables(0).Rows(0).Item["FieldName"] == DBNull.Value);
Or this slightly shorter version of the same.
If IsDbNull(DataSet.Tables(0).Rows(0).Item("FieldName")) Then
if the table does not have that particular data (number) then the following error comes
There is no row at position 0
how can it be rectified
Hi, I am already checked in my program that dataset is empty or not but my site sometime gives the exception message that Dataset is empty if i am reset IIS after that this message will not occur until 4-5 hours.
please provide appropriate solution to me.
Originally Posted by Memnoch
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)