c# - Bind object properties to a datagrid in WPF -



c# - Bind object properties to a datagrid in WPF -

i have next class:

public class sp3ditem { public sp3ditem() { items= new observablecollection<sp3ditem>(); } public string oid { get; set; } public string name { get; set; } public string type { get; set; } public observablecollection<sp3ditem> items { get; set; } }

i need show properties of instance of object datagrid (or other type of grid). properties window in visual studio. there properties don't care, 'items', need show properties of string type, , ones non empty values (this lastly 1 plus, not real need).

the question is, can binding or have assembly info on grid manually?

sounds want property grid view properties of single object instance, each property/value pair 'row', yes? if that's case, of third-party property grid controls. wpf extended toolkit has free one.

typically, these grids can automatically find properties of target object, , can take hide properties adorning them [browsable(false)].

c# wpf datagrid

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -