when I click a button, I load data into my datagrid
MySqlCommand cmd1m = new MySqlCommand("select * from table", conn); DataTable dt1m = new DataTable(); dt1m.Load(cmd1m.ExecuteReader()); System.Windows.Forms.BindingSource source = new System.Windows.Forms.BindingSource(); source.DataSource = dt1m; dataGrid1.ItemsSource = source;
Namespace:
xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
and xaml:
<wpf:BusyIndicator Name="loading" IsBusy="False"> <DataGrid>...</DataGrid> </<wpf:BusyIndicator>
but the indicator does not work, why? What to do to make it work?
source share