binding a set of datarows to datagridview

前端 未结 3 1095
孤街浪徒
孤街浪徒 2021-01-23 06:15

I have tried the following code, but nothing is displayed in datagridview.

Any Suggestions?

string strFilterOption = \"dtcolnPurchaseProductExpProductNo=         


        
3条回答
  •  情深已故
    2021-01-23 06:57

    In case if someone experiencing a similar issue, the easiest way will be to convert the data row array back to datatable and then setting the grid view data source.

    dgvProductExp.DataSource = dtPurchaseProductExp.Select(strFilterOption).CopyToDataTable();
    

提交回复
热议问题