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
It was happening randomly as i was clicking, sorting, and grouping the grid. I will look at trying to nail down the exact click sequence that causes it tomorrow.
thanks for the help with this.
Hey Ted,
Glad this is what you're looking for.
Do you have a sample, and some steps to reproduce?
This will help ensure that the issue is definitely fixed for the release.
Thanks,
-SteveZ
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
I understand your situation. I am sure you will find other things that you will not like in Silverlight as well, such as dealing the the ComboBox, or trying to Print or export data to Excel (luckily we get the base funcitonality of exporting with Infratgistics.Exel, but it is limited). For now, I would try to UnboundColumn approach and see if it will meet your needs. Let me know if it works for you, because I am in the same boat as your are. I want my sorting, and grouping on TemplateColumns!
Oh just a heads up, if you are planning on exporting your data to Excel using Infagistics.Excel, be aware that when you use TemplateColumns, the Cell.Value will be null, meaning that you cannot grab the value from the XamWebGrid. You will have to get the value from your underlying data source instead.
Sorry fro the confusion. originally I could not get the data to display, your suggestion and example fixed that. then i ran into the grouping and sorting limitations of the approach.
SO i want my cake and eat it to. i wan to display the data and be able to group and sort it bacause we allow our customers to do this in our WPF client and they would not like it if i took it away in our new shiny SL client.
thanks