Print Page | Close Window

SetSelected() - what's the different

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=22382
Printed Date: 30 January 2025 at 5:54pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetSelected() - what's the different
Posted By: Michl
Subject: SetSelected() - what's the different
Date 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



Replies:
Posted By: astoyan
Date 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


Posted By: Michl
Date 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



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