How to Casting DataSource to List?

后端 未结 4 1500
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-17 11:11

I have the following method that load products on a DataGridView

private void LoadProducts(List products)
{
    Source.DataSource = products;          


        
4条回答
  •  野的像风
    2021-01-17 11:27

    Your List ist of type List which is different from List. Try to cast to List

    提交回复
    热议问题