for (int iCount = 0; iCount < dtCompleteSeries.Rows.Count; iCount++)
{
var val = dtCompleteSeries.Rows[iCount]["data_descriptor_vc"].ToString();
//------------check if it already exists---------------//
if (!cmbFinalSeries.Items.Contains(val))
{
cmbFinalSeries.Items.Add(Convert.ToString(dtCompleteSeries.Rows[iCount]["data_descriptor_vc"]));
}
}
{
var val = dtCompleteSeries.Rows[iCount]["data_descriptor_vc"].ToString();
//------------check if it already exists---------------//
if (!cmbFinalSeries.Items.Contains(val))
{
cmbFinalSeries.Items.Add(Convert.ToString(dtCompleteSeries.Rows[iCount]["data_descriptor_vc"]));
}
}
No comments:
Post a Comment