Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 13th, 2006, 04:19 AM
dt_aiying dt_aiying is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 93 dt_aiying User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 58 m 8 sec
Reputation Power: 4
Question Sort By Column Header in Hierarchical Flexgrid

Hi everyone,

I'm trying to allow user to view sorted data from a Hierarchical Flexgrid in my VB6 program.

To do this, the user should click on a column header in the Hierarchical Flexgrid and all the data in the Hierarchical Flexgrid should be sorted according to the column header selected.

The problem is, the column header is a "fixed column" and the user is not able to sort data via the column header by clicking on it (eventhough I've set the "AllowUserResizing" property to "1 - flexResizeColumns").

What should I do? Please help.
Thanks very much.

Here's the codelines
(Sorts data only when row = 1 and not row = 0, as desired):

Code:
Private Sub MSHFlexGrid1_Click()

	With MSHFlexGrid1

		Dim myCol
		myCol = .ColSel
                
                
                'This line will not work : 
                'If .row = 0 Then

		If .row = 1 Then

			.col = myCol
			.Sort = 1
		
		End If

	End With

End Sub

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Sort By Column Header in Hierarchical Flexgrid


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT