Hi, i have a xamGrid with two columns, the first column is a ComboBoxColumn, when i change the value of the combobox i would like to insert in the second column (depending of the value of the combobox) different UI controls like textboxs, others combos, checkboxs. Anybody has an idea or example of how to do that?
Thanks
Hello,
In theory you could accomplish this by creating a custom column for the second column. In the ResolveDisplayElement event of the custom column you would check the value of the first column and then return the appropriate FrameworkElement object for the data in the first column.
For an overview of how to create a custom column, please see the following blog post:
<http://blogs.infragistics.com/blogs/devin_rader/archive/2010/07/08/creating-custom-columns-for-xamgrid.aspx>
Hi Jason, yes i understand you, but the ResolveDisplayElement event only occurs the first time when the grid is loaded, in that case, i need a manner of refreshing the cell, so the ResolveDisplayElement event can execute it again, but i can't find the way.
Try overriding the ColumnContentProviderBase's AdjustDisplayElement method.
http://help.infragistics.com/NetAdvantage/Silverlight/2010.2/CLR4.0/?page=InfragisticsSL4.Controls.Grids.XamGrid.v10.2~Infragistics.Controls.Grids.Primitives.ColumnContentProviderBase~AdjustDisplayElement.html
Around the 2010 Volume 2 release I believe we tweaked the grids internal UI element recycling logic to get some additional performance out of the control. Part of those tweaks included adding this additional method override which is a less expensive operation for the control that running ResolveDisplayElement every time a cell is scrolled into view.
Devin
I encountered a manner to refresh the entire column, but i only need refresh a specific cell, so, different cells will have different controls inside.We really need a solution for this, we are trying to migrate an infragistics ultra grid from windows to silverlight, and we have a lot of problem to emulate the same functionality.
Thanks.