Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Sort by check box column
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sort by check box column

 Post Reply Post Reply
Author
Message
JamesH View Drop Down
Senior Member
Senior Member


Joined: 01 December 2004
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote JamesH Quote  Post ReplyReply Direct Link To This Post Topic: Sort by check box column
    Posted: 04 December 2007 at 5:37pm
If a column is a list of check boxes how can I make it so the grid is sortable by that column?  Eg. clicking on the top of that column brings all the checked items to the top.
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2008 at 2:50pm

Hi,

I don't know if you still need the sorting of checked items? I just started to use the reportcontrol myself so thats why my reply is a little (maybe too) late. If you set a value for the xtremeRecordItem.SortPriority = False (unchecked) when adding the items to the reportcontrol like this:

Set xtremeRecord = wndReportControl.Records.Add()
    Set xtremeRecordItem = xtremeRecord.AddItem("")
          xtremeRecordItem.HasCheckbox = True
          xtremeRecordItem.SortPriority = False 
 
 
Private Sub wndReportControl_ItemCheck(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem)
    Item.SortPriority = Item.Checked
End Sub
 
This should do the trick.
 
PS This reply shows once again that we need Code Snippets see my post
 
and I wonder why this post has no replies at all????? see my post
 
Wake up members !!!!!!!!!!!!!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.