how to apply sorting in grid view field through codebehind
-
how to apply sorting in grid view field through codebehind. and my gridview code is: SqlDataAdapter da = new SqlDataAdapter("select * from newcustomer ", con); con.Open(); DataTable ds = new DataTable(); da.Fill(ds); GridView1.DataSource = ds; GridView1.DataBind(); con.close();
-
how to apply sorting in grid view field through codebehind. and my gridview code is: SqlDataAdapter da = new SqlDataAdapter("select * from newcustomer ", con); con.Open(); DataTable ds = new DataTable(); da.Fill(ds); GridView1.DataSource = ds; GridView1.DataBind(); con.close();
You could have tried searching in google. Refer the links below: Articles: GridView Paging and Sorting[^] Gridview Sorting with Up and Down Icons, Paging[^] Discussions: Sorting data in Gridview by clicking on header column[^]
Just shift & delete(Remember no backups), then you'll enjoy. ___________________________________________________ A little help through the tips and Articles 1. Application Login through Active Directory (LDAP) 2. Table Valued Parameters
-
how to apply sorting in grid view field through codebehind. and my gridview code is: SqlDataAdapter da = new SqlDataAdapter("select * from newcustomer ", con); con.Open(); DataTable ds = new DataTable(); da.Fill(ds); GridView1.DataSource = ds; GridView1.DataBind(); con.close();
Use this link GridView Paging and Sorting[^]
-
Use this link GridView Paging and Sorting[^]
My 1: Please read the existing answers and make sure you aren't reposting a link that already exists in another answer.
I wasn't, now I am, then I won't be anymore.