↧
Re: Handle Null condition
Try this If Not dataSet.Tables("History").Rows(0)("DiscountsAdjustments") Is Nothing Then
View ArticleRe: 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 ArticleRe: 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 ArticleHandle 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