Time:03-30
CodePudding user response:
add TextBox value line by line to the dataGridView, add before judge whether to have duplicate values,
The DataTable dt=db. GetDt (" select * from table name ");//get the datatable The DataView dv=new DataView (dt);//table view The DataTable dt2=dv. ToTable (true, "the name, age, hobby");//which fields to heavy, write down the field name, wrote three columns on the demo fields, removal of 3 columns have repeated the dt2 written,
Page link:https//www.codepudding.com/net/106319.html