Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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
 
Old October 30th, 2008, 08:20 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default GridView - initial load and sort direction

When I show a GridView for the first time I would like to show that the GridView is sorted on a specific column (Asc or Desc) (even if I have not yet clicked any sort columns). So what I do is using an "InitialLoad" variable = True and then I manually set the SortExpression and SortDirection. When user clicks on a sort column I set the "InitalLoad" = False. I don't know if there is a better way do do this?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Initial Page is slow to load bjoneskc BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 2 July 7th, 2007 11:14 AM
Sort with gridview smithsf22 ASP.NET 2.0 Basics 1 December 9th, 2006 09:17 AM
GridView Sort (Top Urgent ) msbsam ASP.NET 2.0 Professional 0 December 6th, 2006 02:34 AM
GridView sort without DataSet? drasko ASP.NET 2.0 Professional 1 October 3rd, 2006 06:57 AM
Page_Load method not executed on initial load lphiedrag ASP.NET 1.0 and 1.1 Professional 7 October 25th, 2004 03:41 PM





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