protected void DropDownListCur_DataBinding(object sender, EventArgs e)
{
string strCustNo;
string strddlName;
strddlName = "DropDownListCur";
string strColName;
strColName = "cur_no";
bool flag = false;
DataRowView rowView = (DataRowView)FormView1.DataItem;
strCustNo = rowView[strColName].ToString();
DropDownList dd = (DropDownList)FormView1.FindControl(strddlName);
for (int i = 0; i < dd.Items.Count; i++)
{
if (strCustNo == dd.Items[i].Text)
{
flag = true;
break;
}
}
if (flag == false)
dd.Items.Add(strCustNo);
}