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

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -