Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 2.33 KB

File metadata and controls

43 lines (32 loc) · 2.33 KB

WinForms Property Grid - Create editor and category rows

This example demonstrates how to create editor and category rows and add them to the PropertyGrid control:

void CreateRows() {
    EditorRow rowLastName = new EditorRow("LastName");
    rowLastName.Properties.Caption = "Last name";
    propertyGridControl1.Rows.Add(rowLastName);
    CategoryRow rowCategory = new CategoryRow("Address");
    propertyGridControl1.Rows.Add(rowCategory);
    EditorRow rowAddressLine1 = new EditorRow("AddressLine1");
    rowAddressLine1.Properties.Caption = "Address Line 1";
    rowCategory.ChildRows.Add(rowAddressLine1);
    EditorRow rowZip = new EditorRow("Zip");
    rowZip.Properties.Caption = "Zip Code";
    rowCategory.ChildRows.Add(rowZip);
}

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)