Back to Devexpress

PropertyGridControl.RetrieveFields() Method

windowsforms-devexpress-dot-xtraverticalgrid-dot-propertygridcontrol-c305f9b2.md

latest2.5 KB
Original Source

PropertyGridControl.RetrieveFields() Method

Creates rows for the bound object’s properties.

Namespace : DevExpress.XtraVerticalGrid

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

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

Declaration

csharp
public override void RetrieveFields()
vb
Public Overrides Sub RetrieveFields

Remarks

The RetrieveFields method doesn’t create rows for nested properties. To create rows for nested properties, use another overload of the RetrieveFields method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RetrieveFields() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-property-grid-unbound-rows/CS/DXApplication3/Form1.cs#L21

csharp
helper.AddUnboundRow("UnboundDateTime", typeof(DateTime));
    propertyGridControl1.RetrieveFields();
}

winforms-property-grid-unbound-rows/VB/DXApplication3/Form1.vb#L16

vb
helper.AddUnboundRow("UnboundDateTime", GetType(Date))
    propertyGridControl1.RetrieveFields()
End Sub

See Also

UpdateRows()

PropertyGridControl Class

PropertyGridControl Members

DevExpress.XtraVerticalGrid Namespace