Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Any way to remove row from SelectedRows
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Any way to remove row from SelectedRows

 Post Reply Post Reply
Author
Message
davidmcelroy View Drop Down
Newbie
Newbie
Avatar

Joined: 27 January 2007
Location: United States
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidmcelroy Quote  Post ReplyReply Direct Link To This Post Topic: Any way to remove row from SelectedRows
    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.
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
davidmcelroy View Drop Down
Newbie
Newbie
Avatar

Joined: 27 January 2007
Location: United States
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidmcelroy Quote  Post ReplyReply Direct Link To This Post Posted: 05 February 2007 at 8:02am
Thank you. I will try it.
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.258 seconds.