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
330
how to populate dynamic columns from a collection?
posted

OK... I have kindof a sepecialised case.  I am getting log data back from a DB that has 5 static properties and then any number of variable properties.  The class looks like this:

Prop 1, prop 2, prop 3, collection of properties 4-n... all possible properties are known.

Based on the type of log, properties 4-n will be different, again, all possible properties will be known.

The values of these properties will always be text.

binding properties 1-3 are easy... but is it possible to bind column values to items within a sub collection? for example, key="{Binding PropCollection.Prop4}"

Thanks in advance for any help

Marc

Parents Reply
  • 325
    posted in reply to Stephen Zaharuk

    firstly, i have my cake and i can eat it too!  the Unbound column is exactly what i was looking for.

    i do randomly get the following error, but it's beta right!  when will it be released?

    Unhandled Error in Silverlight Application Object reference not set to an instance of an object. at Infragistics.Silverlight.Controls.RowBase.get_Columns()\n at Infragistics.Silverlight.Controls.XamWebGrid.SetActiveCell(CellBase cell, CellAlignment alignment, InvokeAction action, Boolean allowSelection, Boolean setFocus, Boolean scrollIntoView)\n at Infragistics.Silverlight.Controls.XamWebGrid.SetActiveCell(CellBase cell, CellAlignment alignment, InvokeAction action, Boolean allowSelection, Boolean scrollIntoView)\n at Infragistics.Silverlight.Controls.XamWebGrid.SetActiveCell(CellBase cell, CellAlignment alignment, InvokeAction action, Boolean allowSelection)\n at Infragistics.Silverlight.Controls.Cell.OnCellMouseDown(MouseEventArgs e)\n at Infragistics.Silverlight.Controls.XamWebGrid.c(Object A_0, MouseButtonEventArgs A_1)\n at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)\n at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName

Children