Quantcast
Channel: Handle Null condition
Browsing latest articles
Browse All 4 View Live
↧

Re: Handle Null condition

Try this If Not dataSet.Tables("History").Rows(0)("DiscountsAdjustments") Is Nothing Then

View Article


Re: Handle Null condition

Also, the DataRow has an IsNull  method so once you call the row, you can get the IsNull for a column without adding an extra DbNull.Value check.

View Article


Re: Handle Null condition

Hi Rahul,try below code:C#var ds = new DataSet(); ds.Tables.Add(GetTable()); var dosage = ds.Tables.Count > 0 //checking if dataset has tables&& ds.Tables[0].Rows.Count > 0 ? //checking...

View Article

Handle Null condition

Hi Experts,I want to handle null condition in below code.lstTest.Discount = If((Not dataSet.Tables("History") Is Nothing), If(IsDBNull(dataSet.Tables("History").Rows(0)("DiscountsAdjustmentsAmount")),...

View Article
Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>