Print Page | Close Window

Any way to remove row from SelectedRows

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=6252
Printed Date: 16 September 2024 at 4:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Any way to remove row from SelectedRows
Posted By: davidmcelroy
Subject: Any way to remove row from SelectedRows
Date Posted: 28 January 2007 at 10:53am
I'm implementing my own drag and drop capability within the same Report Control. When someone starts to drag a group of records, I need to check the staus of each record and sometimes I need to "prevent" the user from dragging specific records. I have a custom cursor that shows what they are dragging and it is easy enough to disply only what they can move.
 
The problem is how do "Unselect" specific rows programatically?
 
Thank you in advance for your time and assistance.



Replies:
Posted By: sserge
Date Posted: 31 January 2007 at 5:51am
Hi,

Unselect a specific row you can with assigning its property:

wndReport.Rows(i).Selected = False


Also you can handle a collection of dragging records with handling BeginDrag event:

'The BeginDrag event occurs when records are being dragged from\within the Report Control, and provides a
'ReportRecords collection containing all of the selected records when the drag operation started.
Private Sub wndReport_BeginDrag(ByVal Records As XtremeReportControl.IReportRecords)
    Debug.Print "Begin Drag. Records.Count = " & Records.Count
End Sub


--
WBR,
Serge


Posted By: davidmcelroy
Date Posted: 05 February 2007 at 8:02am
Thank you. I will try it.



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