private void tvwSections_AfterSelect(object sender, TreeViewEventArgs e) { ModuleProc PROC = new ModuleProc("", "tvwSections_AfterSelect"); try { _selectedClass = e.Node.Tag as RegClassName; var items = _config.KeyValues[_selectedClass.RefKeyName]; CustomClass values = new CustomClass(); foreach (var item in items) { object value = _config.GetObjectValue(_selectedClass.RefKeyName, item.Key); CustomProperty kv = new CustomProperty(item.Key, value, false, true); values.Add(kv); } pgrdKeyValues.SelectedObject = values; } catch (Exception ex) { Log.Exception(PROC, ex); } }