I am trying to compare the value of a row esmcost with psmcost of table wsmtbl but esmcost cost value is null due to which I am getting the following error:
Operator '<>' is not defined for type 'DBNull' and type 'DBNull'
Is there any way to change the null value to zero?
This is the C# code
ds.Tables["wsmtbl"].Rows[0]["esmcost"] <> ds.Tables["wsmtbl"].Rows[0]["psmcost"]