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);
}
(you will be redirected to DevExpress.com to submit your response)