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
120
Adding an ultraSparkLine to UltraGrid
posted

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

Parents
  • 7435
    Offline posted

    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

Reply Children