Print Page | Close Window

Sort by check box column

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=9003
Printed Date: 20 September 2024 at 8:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Sort by check box column
Posted By: JamesH
Subject: Sort by check box column
Date 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.



Replies:
Posted By: Aaron
Date 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
http://forum.codejock.com/forum_posts.asp?TID=10298 - http://forum.codejock.com/forum_posts.asp?TID=10298
 
and I wonder why this post has no replies at all????? see my post
http://forum.codejock.com/forum_posts.asp?TID=10160 - http://forum.codejock.com/forum_posts.asp?TID=10160
 
Wake up members !!!!!!!!!!!!!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net