Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
UltraWinGrid and BindingSource with Complex Property
posted

Hi,

I'm validating the Infragistics UltraGrid (version 6.3) for use in a project. Is there a way to use a bindingsource with complex properties? Example:

class cAddress
{
     public string Street { get; set; }
}

class cResident
{
     public string Lastname { get; set; }
     public cAddress Address { get; set; }
}

I tried to do the following:
ArrayList _Residents = GetResidents() //returns cResident Collection
BindingSource _BindingSource = new BindingSource(_Residents);
UltraGrid _UltraGrid = new UltraGrid(); // Would be initialized in designtime for columns etc.

_UltraGrid.DisplayLayout.Bands[0].Columns[1].Key = "Lastname";
_UltraGrid.DisplayLayout.Bands[0].Columns[2].Key = "Address.Street";

The property for column 2 does not show up.

Any suggestions or help would be great.

Thanks,
Iwe

Parents Reply Children
No Data