Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 November 5th, 2004, 12:11 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default Clicking on a datagrid header

Hi,

 I have a simple databound datagrid with headers. I want to sort
my datagrid by clicking on the header of a specific column.

My problem - how can I get the server command event to fire when
I click on the column header ?

I understand about OnCommand="DoMyFunction". But how can I link the
column header to fire this off? Do I need to embed another HTML
control in my databound column ?





 
Old November 5th, 2004, 03:42 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,
when you set AllowSorting property to true,you can sort your grid
according to the column you click ...
also take a look at this thread.

--------------------------------------------
Mehdi.:)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid fixed header Swopna .NET Framework 1.x 1 March 22nd, 2008 11:06 AM
Getting column name/header of a datagrid elygp ASP.NET 1.0 and 1.1 Professional 2 June 6th, 2007 01:07 PM
Clicking on a row in a datagrid SaharaWizard VB Databases Basics 0 September 1st, 2004 04:25 PM
header text in datagrid msrnivas .NET Web Services 1 March 4th, 2004 01:56 PM





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