Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
118619 Points
18779 Posts
Feb 15, 2012 12:45 AM|LINK
donato1026 but the I only want to use the order number, first name, last name et cetera to show up ONCE in the "HeaderPanel"
Besides using distinct,you can also use DataView.ToTable's 3rd function with a string[],this will filter duplicated issues……
using(SqlDataAdapter adapter = new SqlDataAdapter("select * ……","conn str")) { DataTable dt = new DataTable(); adapter.Fill(dt); DataView dv = new DataView(dt); dt = dv.ToTable(true,"field1","field2",……,"fieldN"); }
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Select ONE record with details from that record...
Feb 15, 2012 12:45 AM|LINK
Besides using distinct,you can also use DataView.ToTable's 3rd function with a string[],this will filter duplicated issues……
using(SqlDataAdapter adapter = new SqlDataAdapter("select * ……","conn str")) { DataTable dt = new DataTable(); adapter.Fill(dt); DataView dv = new DataView(dt); dt = dv.ToTable(true,"field1","field2",……,"fieldN"); }