Chris Toshok | 11 May 2006 21:24

datagrid layout patch

The initial layout of the datagrid (CalcGridAreas in particular) ends up
recursively calling itself (on one test it was being invoked 5 or 6
times.)  You can see this happening with a large datagrid by watching
the vertical scrollbar's slider change size as it lays out.

This patch calculates the layout/positioning of everything in a single
pass, which speeds things up quite a bit.

Chris
Attachment (datagrid-layout.diff): text/x-patch, 12 KiB
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Jordi Mas | 12 May 2006 13:40
Picon

Re: datagrid layout patch

El dj 11 de 05 del 2006 a les 15:24 -0400, en/na Chris Toshok va
escriure:
> The initial layout of the datagrid (CalcGridAreas in particular) ends up
> recursively calling itself (on one test it was being invoked 5 or 6
> times.)  You can see this happening with a large datagrid by watching
> the vertical scrollbar's slider change size as it lays out.
>         
> This patch calculates the layout/positioning of everything in a single
> pass, which speeds things up quite a bit.
>         
> Chris

Chris, your patch looks to me. Feel free to commit it. Thanks.

Jordi,

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Gmane