Hi
Is it possible to add an ultraSparkline chart to an ultraGrid row in code? and if so do you have an example of how to do it?
Cheers
Dave
Hello,
Thank you for the update. Glad that its working for you now.
Yeah that wasn't the issue. Turned out to be when adding a column to an existing schema bound grid (even though adding to the data source). I added the column to the schema and now works as expected.
Thanks again for your help. Much appreciated.
Try to set rowsizing to free . Here is the doc for the refrence.
https://es.infragistics.com/help/winforms/infragistics.win.ultrawingrid~infragistics.win.ultrawingrid.rowsizing
Hi Divya
Thank you for the very prompt reply. This works great apart from when I resize the row the sparkline doesn't resize unlike in your example when it does. Is there a setting on the grid that controls this behaviour as I have all other properties the same as your example.
Hello David,
Thank you for contacting. In order to put any control in the grid column you would have to use UltraControlContainerEditor and set its RenderingControl and RenderingControlPropertyName properties.
And then Assign the UltraControlContainerEditor to the grid column.
Something like that :
UltraControlContainerEditor ultraControlContainerEditor = new UltraControlContainerEditor(); ultraControlContainerEditor.RenderingControl = this.ultraSparkline1; ultraControlContainerEditor.RenderingControlPropertyName = "DataSource"; // Assign the UltraControlContainerEditor to the grid column. sparklineColumn.EditorComponent = ultraControlContainerEditor;
Also attached a small demo sample for the reference.
Sparkline in a grid.zip