MySqlCommand cmd = new MySqlCommand(query, conn);
dt.Load(cmd.ExecuteReader());
List<string> list = new List<string>();
while (combodata.Read())
{
list.Add(combodata.GetString(0));
}
source.DataSource = dt;
dataGrid1.ItemsSource = source;
how add list to source?
source.DataSource = dt;
source.DataSource = list;
wrong…
i need add dataGrid1.ItemsSource a dt and list
how i can?
You can use a
CompositeCollection: