previewmode |
Post Reply |
Author | |
adam_right
Newbie Joined: 08 September 2005 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 08 September 2005 at 6:07pm |
Hi! How can i change previewmode property for the only one specific row ? Thank you for help Adam |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, Set record.previewText to "" and preview will dissappear for this record.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
adam_right
Newbie Joined: 08 September 2005 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
adam_right
Newbie Joined: 08 September 2005 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |