Skip to content

DevExpress-Examples/winforms-property-grid-create-rows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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