CodePudding user response:
Finally found the way toCreate a DataTable dt=new DataTable ();//create a DataTable object
Then dt=dataSet. Tables [0];//the object with data
DataView again dv=new DataView (dt);//create the DataView object can be understood as a data model.
Dv. RowFilter="SQL"//executing SQL statements;
DataGridView. Source=dv;//change the dataGridView data
Dt=dv. ToTable ();//after the screening data save drop-down, multiple selection