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.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
[Browsable(false)]
[DefaultValue(0)]
public virtual int FocusedCardTopFieldIndex { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Int32 | 0 | 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 Xtra
- Grid
Control. - returns the top most View in a grid;Main View - Grid
Control. - returns the focused View;Focused View - Grid
Control. - returns the currently maximized View;Default View - the sender parameter of View specific events;
- Grid
View. - returns a detail clone View for a specific master row.Get Detail View