Home > Net >  C # selection problem
C # selection problem

Time:11-13

DataView (object). RowLilter method three times what method for secondary screening or selection or more selection?

CodePudding user response:

Finally found the way to
Create 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
  •  Tags:  
  • C#
  • Related