Menu

grid.AutoSizeCells() is very slow

Help
Anonymous
2006-10-15
2013-04-23
  • Anonymous

    Anonymous - 2006-10-15

    Such low speed should be considered as a bug.

     
    • Davide Icardi

      Davide Icardi - 2006-10-15

      What type of grid do you use?
      How many cells?

       
    • Anonymous

      Anonymous - 2006-10-15

      I use SourceGrid.Grid. Usual size is 20 columns and 10-50 rows. 1st column - checkboxes, 2nd - images, other columns - just small strings.

      Take a "Real grid performance" sample. A 50x20 table appears with almost no delay. But if you add autosizing, it freezes for ~4..5 seconds.

       
      • Davide Icardi

        Davide Icardi - 2006-10-17

        You are right, it is quite slow.
        I will try to improve it.

        For now an idea is to autosize only the columns (Grid.Columns.AutoSize(true)), and use a fixed row height. It is usually the better solution if you have many rows.

        Davide

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.