-
Customizing Card View [Janus GridEX WinForms Control v3.5 for .NET]
The properties used to enhance Card View used in this tutorial are:
In GridEX Control:
CardCaptionPrefix = "Product:"
CardColumnHeaderFormatStyle.FontBold = TriState.True
CenterSingleCard = False
In Column objects:
Column["Icon"]
CardIcon = True
CardIcon property is used to instruct the control to use the icon displayed in this column as the icon in the card caption. Only one column can have this property equal to True.
Column["ProductName"]
CardCaption = True
CardCaption property is used to instruct the control to use the text in this column as the text shown in the card caption. Only one column can have this property equal to True.
After setting these properties, we added a combo box to let the user switch between Table, Card and Single Card Views. When the user selects a view, other properties are also set depending on the selected view. For instance, in card views, we are hiding the Icon column to show it only in the card’s caption but not as a part of the card body. When SingleCardView is selected, the RecordNavigator is shown to let the user navigate through all the records in the products table. Refer to the SelectedIndexChanged event of the Combo Box to see the code.
Source Of Information : Janus v3.5 Help Files for VS 2008
Subscribe to:
Post Comments (Atom)
0 comments: