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
15
How to handle many columns in WinGrid ?
posted

Hi

I handle many image data.

I want to show wingrid in pixel data to image.

In wingrid, Using Add function to make columns is very slow. 

how to make many columns and rows as fast?

  • 960
    Offline posted

    Hello Hyunchul Back,

    Thank you for contacting Infragistics Developer Support.

    I followed the steps you suggested and was unable to reproduce the behavior you're describing.  I put a WinGrid on a form, bound it to 100 rows and added 100 unbound columns for images.  The grid, therefore, had 100 x 100 image columns.  First, in order to simply see Columns Add function's performance, I just left the grid without loading an image file to each cell and confirmed that the grid was instantly displayed on the form after the application was launched.  And then, I modified the grid to load image files to each cell and gave it a try, but it took only about five seconds until the grid was completely displayed on the form. Therefore, it didin't seem that Columns Add function itself was slow and that five seconds was as slow as you had described in the expression "Using Add function to make columns is very slow".

    I have attached the sample project I used to test this.  Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.

    If the project does not work correctly, then the change in behavior is due to differences in your environment from mine and these differences can be anything from operating system version to the specific version of the Infragistics DLL versions used.  My test was performed using version 18.1.20181.88 in Windows Forms 2018 Vol. 1.  Please provide more details about your machine and version of the assemblies that you are referencing so that I can modify the environment that I am testing in to match yours.

    If the project does show the product feature working correctly, then more information will be needed to reproduce the issue in a sample that can be used for debugging.  It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.  This can be done by either making the sample that I provided more like your application or by isolating the behavior from your application by removing dependencies on any third parties or databases.

    Please let me know if I can provide any further assistance.

    WindowsFormsApp2.zip