Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old September 6th, 2008, 11:20 AM
Newbie
 
Join Date: Aug 2008
Posts: 3
Default Sorting FlexGrid

How can I sort the contents in an MSFlexGrid in VB6 using the sort property at run time.
Reply
  #2  
Old September 7th, 2008, 04:06 AM
QVeen72's Avatar
Moderator
 
Join Date: Oct 2006
Location: Bangalore
Posts: 1,292
Default

Hi,

Write this code in Grid's Click event:

Expand|Select|Wrap|Line Numbers
  1. If Grd.Row = 1 And Grd.Col > 0 Then
  2.       Grd.Sort = 1
  3. End If
  4.  
Click on any of the Fixed Column (at top) This allows you to Sort the selected Column.

Regards
Veena
Reply
Reply

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles