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
475
UltraGrid Snapshot on any event
posted

I want to snapshot of Ultra Grid (selected columns) on any event basis. Please give me any idea for this.

  • 48586
    posted

    Hello,

     

    I am just checking about the progress of this issue. Let me know If you need my further assistance on this  issue?

    Thank you for using Infragistics Components

  • 48586
    Verified Answer
    posted

    Hello,

     

    You could get snapshot of the selected grid columns only if they are fully paint. So what I could suggest you is to put your grid in a panel and to resize the grid so that all its content to match the grid size. Then you will be able to draw the grid to a bitmap with DrawToBitmap(…) method and from this bitmap you could copy only the areas of the selected columns. I’ve implemented this approach in a simple sample, please see the attached zip. I should note that drawing of whole content of the grid may leads to a performance issue, depends of the count of the records, filters, summaries and etc.

     

    I hope that this will helps you.

    139037.zip