getting error in following line "this.dgvReport.Invoke(delegate"
"Cannot convert anonymous method to type 'System.Delegate' because it is not a delegate type"
public void FillProductGrid()
{
ProductSP productSP = new ProductSP();
DataTable dtbl = new DataTable();
string productname = "";
dtbl = productSP.StockReport(productname, this.cbxPrint.Checked);
this.dgvReport.Invoke(delegate
{
this.dgvReport.DataSource = dtbl;
});
}