hi dear,
check this message.
string SQL = " SELECT TableColoumName From TableName " ;
DataTable dt = DataManager.ExecuteQuery(SQL);
if (dt.Rows.Count; 0)
{
comboBox1.DataSource = dtPaymentPurpose;
comboBox1.DisplayMember = TableColoumName;
comboBox1.ValueMember = TableColoumName;
comboBox1.SelectedIndex = -1;
}
else
{
comboBox1.DataSource = null;
}