User1724605321 posted
Hi JagjitSingh ,
Convert.ToDecimal(dt.Rows[i]["Sh1"]) is Decimal type , 0 > 0 is Bool type(False ) . Base on your requirement , you can modify your code . For example :
if (dt.Rows[i]["Sh1"] != DBNull.Value ? true : false) {
}
Best Regards,
Nan yU