Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 14th, 2007, 12:26 AM
Authorized User
Points: 270, Level: 5
Points: 270, Level: 5 Points: 270, Level: 5 Points: 270, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2006
Location: thrissur, kerala, India.
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to sort datagrid columns

hi friends,
           i would like to get help from you to sort my datagrid columns.i am working with c#.net 1.1 and sqlserver.please help me for the same.
                                sumith
__________________
sumith
  #2 (permalink)  
Old February 15th, 2007, 01:59 PM
Authorized User
 
Join Date: Feb 2007
Location: , , USA.
Posts: 37
Thanks: 1
Thanked 0 Times in 0 Posts
Default

check this it might help you.

http://www.dotnetjunkies.com/Tutoria...EE3161815.dcik

  #3 (permalink)  
Old February 15th, 2007, 11:35 PM
Authorized User
Points: 270, Level: 5
Points: 270, Level: 5 Points: 270, Level: 5 Points: 270, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2006
Location: thrissur, kerala, India.
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by maulik33
 check this it might help you.

http://www.dotnetjunkies.com/Tutoria...EE3161815.dcik

dear maulik,
             dotnetjunkies helped me a lot.thank you for ur help.take care
                                 sumith
  #4 (permalink)  
Old February 19th, 2007, 01:12 AM
Authorized User
Points: 270, Level: 5
Points: 270, Level: 5 Points: 270, Level: 5 Points: 270, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2006
Location: thrissur, kerala, India.
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

friends,
    i have sorted my datagrid using a dataview.i have used the code given below.any other easy method to sort the datagrid??

************************************************** ********
SqlConnection con3=new SqlConnection();
SqlDataAdapter ad = new SqlDataAdapter("select * from Admin_ringtone",con3);
DataSet ds = new DataSet();
DataView dv = new DataView();
ad.Fill(ds,"Admin_ringtone");
dv = new DataView(ds.Tables["Admin_ringtone"]);
dv.Sort = "code";
dv.Sort = "code DESC";
dv.Sort = "code";
DataGrid1.DataSource = dv;
DataGrid1.DataBind();
************************************************** ***********


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using VBA to Sort Multiple Columns meclive Excel VBA 1 July 30th, 2008 11:04 AM
Sort Columns omrieliav XSLT 0 May 31st, 2006 10:21 AM
DataGrid Sort ChrisP VB.NET 2002/2003 Basics 0 January 15th, 2006 12:47 PM
Sort Datagrid Sheikha ASP.NET 1.x and 2.0 Application Design 1 June 29th, 2005 04:46 AM
sort by two columns in a MySQL DB crmpicco Classic ASP Databases 1 March 18th, 2005 11:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.