SetDataBinding Performance Hit

From: jon morgan (jonrmorgan_at_ntlworld.com)
Date: 12/05/04

  • Next message: David Johansson: "International chars & Sort on DataView"
    Date: Sun, 5 Dec 2004 21:23:43 -0000
    
    

    Hi,

    I have a windows form that displays a lot of bound datagrids. The individual
    grids are small - 2 cols and 4-8 rows. The datasource is a
    filtered,disconnected,datatable.

    I've noticed that there's a performance hit in calling SetDataBinding to
    change the grids' datasource. It made me wonder why we are told not to reset
    the datagrid's DataSource property and whether SetDataBinding really does
    anything different.

    I'd appreciate any enlightenment. More generally, am I alone in finding
    databinding in ADO.net much slower than MDAC 2.5/2.7 ADO. Is this because it
    wraps MDAC or is this heretical thinking ?

    TIA

    Jon


  • Next message: David Johansson: "International chars & Sort on DataView"

    Relevant Pages

    • Re: DataGrid master-detail indicator
      ... Both Grids need a datasource... ... child grid's datasource to the child datatable. ... > this innovation that not think about somebody who not like it. ...
      (microsoft.public.dotnet.framework.adonet)
    • Pass Data From Collection base to a Dataview
      ... i have a class (of type collectionbase) that creates a collection of objects ... For other hand i have a Datagrid whose Datasource its the collection wich i ... the Grids shows to me the collection. ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Change Format
      ... Are the fields identical from one datasource to the other? ... be better off to have two grids, ... I presume I can do this by setting the datasource property ... > property of a bound column at runtime, from within the C# code of my aspx ...
      (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
    • Re: Change Format
      ... Are the fields identical from one datasource to the other? ... be better off to have two grids, ... I presume I can do this by setting the datasource property ... > property of a bound column at runtime, from within the C# code of my aspx ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Change Format
      ... Are the fields identical from one datasource to the other? ... be better off to have two grids, ... I presume I can do this by setting the datasource property ... > property of a bound column at runtime, from within the C# code of my aspx ...
      (microsoft.public.dotnet.framework.aspnet.webcontrols)

    Loading