Posted on 2013-02-01
Last Modified: 2013-02-09
Please find the attached data grid.   I need for this to sort the data "ASC" but not familiar with accomplishing this outside of a Gridview.   Please asssit.
Question by:BOEING39
  • 3
  • 3
LVL 41

Expert Comment

ID: 38845917
Can you explain what you exactly mean by "outside of GridView.."?

1: You can do at Sql level using order By clause in your query

2: You can do at html level by using some jquery plugins like

Author Comment

ID: 38846152
Well, using VWD 2010 I am able to set the data with by sort the data "ASC" order.
LVL 41

Expert Comment

ID: 38846156
That's what I thought then the other ways are as mentioned in my last post.
Not sure if that's something you are looking for...
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.


Author Comment

ID: 38848918
Sami I am using SQL server.    Are yu saying adjust the code to ascending there as I would normally do in VWD?
LVL 41

Accepted Solution

guru_sami earned 500 total points
ID: 38849866
Check the orderby link I posted earlier.
In your select query it should be something like...

Select * from fileDet Order By fname ASC

Open in new window

Also you can do some explicit sorting of GridView in code-behind as well if you want e.g setting Sorting properties.

Note: Try to use stored procedures wherever possible instead of inline sql.

Author Closing Comment

ID: 38871430
Most accurate response.

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question