Skip to content

PreviewText Property

Description

The text displayed for the GridRecord while in PreviewMode.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property PreviewText() As String

Remarks

When you click on a GridRecordItem, your program might open up a document. This might be used to display the first few lines of the document, or some other useful information about the document.

Example

PreviewText Sample (Visual Basic)

This sample illustrates how to add PreviewText that is displayed in PreviewMode to a Row/Record.

' This sample illustrates how to add PreviewText to a GridRecord

Dim Record As GridRecord
Dim Item As GridRecordItem

' Adds a record
Set Record = wndGridControl.Records.Add

' Adds the text that will be displayed while in PreviewMode
Record.PreviewText = "RE: Your Invoice (From: John Smith)" & _
                     vbCrLf & "John Smith" & _
                     vbCrLf & "19/06/2004" & _
                     vbCrLf & "18K"

Set Item = Record.AddItem("")
Item.HasCheckbox = True
Item.Checked = False

Record.AddItem "RE: Your Invoice"
Record.AddItem "John Smith"
Record.AddItem "19/06/2004"
Record.AddItem "18k"

See Also


See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.