Print Page | Close Window

previewmode

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=2861
Printed Date: 03 May 2024 at 6:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: previewmode
Posted By: adam_right
Subject: previewmode
Date Posted: 08 September 2005 at 6:07pm

Hi!

How can i change previewmode property for the only one specific row ?
For example,
with "RowDblClick" event, can i change the previewmode property for that row ?

Thank you for help

Adam




Replies:
Posted By: Oleg
Date Posted: 09 September 2005 at 5:39am

Hi,

Set record.previewText to "" and preview will dissappear for this record.

 

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: adam_right
Date Posted: 09 September 2005 at 9:30am
hi oleg,

But i want to make this for one record.
for example there are 10 rows, and all rows has previewtext but previewmode is false.
When user DblClick one row, only this rows previewtext should be visible, not all ...

Thanks again...


Adam




Posted By: Oleg
Date Posted: 09 September 2005 at 1:16pm

I see only one way

1. Set PreviewMode to true

2. Set _All_ PreviewText to ""

3. After DblClick set  PreviewText of this item to its real value.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: adam_right
Date Posted: 10 September 2005 at 12:28pm
ok Oleg,
it works, i used an array to handle this.
like this ...
--------
ReDim arCont(wndReportControl.Records.count)
For i = 0 To wndReportControl.Records.count - 1
    arCont(i) = wndReportControl.Records(i).PreviewText
    wndReportControl.Records(i).PreviewText = ""
Next i
wndReportControl.PreviewMode = True
wndReportControl.Populate
--------
and with RowDblClick event
--------
 If wndReportControl.Records(Row.Record.Index).PreviewText = "" Then
    wndReportControl.Records(Row.Record.Index).PreviewText = arCont(Row.Record.Index)
Else
    wndReportControl.Records(Row.Record.Index).PreviewText = ""
End If
wndReportControl.Populate
--------

Thanks a lot ...

Adam



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