Back to Devexpress

CardView.FocusedCardTopFieldIndex Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-card-dot-cardview-420b32c8.md

latest4.1 KB
Original Source

CardView.FocusedCardTopFieldIndex Property

Gets or sets the index of the top visible field within the focused card.

Namespace : DevExpress.XtraGrid.Views.Card

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[DefaultValue(0)]
public virtual int FocusedCardTopFieldIndex { get; set; }
vb
<Browsable(False)>
<DefaultValue(0)>
Public Overridable Property FocusedCardTopFieldIndex As Integer

Property Value

TypeDefaultDescription
Int320

An integer value specifying the zero-based index of the focused card’s top visible field.

|

Remarks

If cards do not fit into the View vertically, their contents are only partially displayed . Unfocused cards always display their top fields in such a case. The focused card can be scrolled via code using the FocusedCardTopFieldIndex property. Assigning a value to this property results in scrolling the card vertically so that the field with the specified index becomes the top visible (if possible). Assigning negative values results in scrolling the card to the top. Assigning values greater than the last available index, scrolls the card to the last field.

Note : the FocusedCardTopFieldIndex property specifies the field by its visible index (the GridColumn.VisibleIndex property value).

End-users can also scroll cards. Card scroll buttons serve for this purpose. The availability of these buttons is controlled by the View’s CardView.VertScrollVisibility property.

Note

Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the FocusedCardTopFieldIndex member must not be invoked for these Views. The FocusedCardTopFieldIndex member can only be used with Views that display real data within the Grid Control. Use the following methods to access these Views with which an end user interacts at runtime.

See Also

Card Field

VisibleIndex

VisibleColumns

Count

CardView Class

CardView Members

DevExpress.XtraGrid.Views.Card Namespace