Hello :) I have a combobox which is filled with a fillbytoolstrip but before filling the cb i want to refresh the dataset, how can i do that?
private void adaugaContract_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'asigurariDataSet.client' table. You can move, or remove it, as needed.
this.clientTableAdapter.Fill(this.asigurariDataSet.client);
fillBy2ToolStripButton_Click(sender, e);
}
private void fillBy2ToolStripButton_Click(object sender, EventArgs e)
{
try
{
this.clientTableAdapter.FillBy2(this.asigurariDataSet.client);
}
catch (System.Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
}