Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - SetSelected() - what's the different
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SetSelected() - what's the different

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


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michl Quote  Post ReplyReply Direct Link To This Post Topic: SetSelected() - what's the different
    Posted: 06 August 2014 at 4:09am
Hello

A record class and a row class has the property SetSelected(). In row a selection works simple.

But how works SetSelected() of a record??
Must I call Populate() to take effect()?
Which property is preferred?

Thanks
Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 284
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post Posted: 07 August 2014 at 7:30am
Hello Michl,

While a row represents a visual object which you can select or perform any other visual modifications, a record is a data object for a row, meaning it describes a state of a row object, and it was not designed to manipulate a row directly. Even you you set the Selected property of a record to TRUE it just will set its internal Selected value to TRUE without any effect, so the only proper way to select a row is to use its Selected property.

Please let me know if this information was helpful.

Thank you.
Regards,
  Alexander Stoyan
Back to Top
Michl View Drop Down
Senior Member
Senior Member


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michl Quote  Post ReplyReply Direct Link To This Post Posted: 07 August 2014 at 7:48am
Thanks

Quote While a row represents a visual object which you can select or perform any other visual modifications, a record is a data object for a row, meaning it describes a state of a row object


That's clear
Quote Even you you set the Selected property of a record to TRUE it just will set its internal Selected value to TRUE without any effect


But when I can use this property and which method evaluates this property (eg. Populate)???

if I have some records and like initially selected this records/rows. Is it enough to set this property in record, add record and populate? It seems not. But for which case I can use this property else??

On other hand. I would nice if this state is modified if user changes the selection of records. So it is possible to iterate rows or records. Sometimes records easier to iterate because they are flat.

Thanks
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.172 seconds.