private void statsbtn_Click(object sender, EventArgs e) { DataRowView rv = this.problemsBS.Current as DataRowView; GADataSet.ProblemsRow p = rv.Row as GADataSet.ProblemsRow; Aid.DoStatistics <GADataSet.ProblemsRow>(p); Application.DoEvents(); taControl1.UpdateAll(sender, e); }