hi,
this might be your problem:
At the first time when you want to set your combo by this code
cmbServer.SelectedValue = iDefaultServerID;
the ideFaultServerID is not defined in your combo! so It can not set it correct!
So do this
int index=dt.Columns["ServerID"].Ordinal;
bool found=false;
for (int i = 0; i < comboBox1.Items.Count; i++)
{
if (((DataRow) comboBox1.Items[i]).ItemArray[i]==iDefaultServerID)
{
faound=true;
comboBox1.selectedIndex=i;
break;
}
}
if (!found) comboBox1.selectedIndex=0;
if it works, you may wnat to improve this code!