hi i have bounded a checked list box To a Data Source Which has been declared in class scope , but when i update data source in some method , checked list box does not change , but when i recall following codes again it changes :
private void UpdateDataSource(string textToSearch )
{
dsContacts = dbSms.fillDataSet("Select * From Contacts Where ContactName Like'%" + textToSearch + "%'", "Contacts");
chListBox.DataSource = dsContacts.Tables["Contacts"];
chListBox.DisplayMember = "ContactName";
chListBox.ValueMember = "ContactNumber";
}