Composite (wrapper) control : CompositeDataBoundControl or not?

Last post 02-04-2009 12:24 PM by ihsany. 1 replies.

Sort Posts:

  • Composite (wrapper) control : CompositeDataBoundControl or not?

    02-02-2009, 3:26 AM
    • Member
      point Member
    • RamonTv
    • Member since 05-22-2007, 7:37 AM
    • Posts 6

    Hi all,

    Basicly we want to develop a composite control which will hold:
    - label for a description above grid
    - datagrid, which can display data inside a grid
    - ... (footer?)

    We want to bind a datasource to the datagrid inside the composite control.

    What would be the best solution? Either make a control which inherits from CompositeControl, and make a few properties to pass them to the datagrid, like and objectdatasource, DataTextField, DataValueField.

    Or, make a control which inherits from CompositeDataBoundControl? It has all above properties build in, but... whats the advantage / disadvantage of this approach?

    Thanks in advance!

     Ramon 

     

     

     

  • Re: Composite (wrapper) control : CompositeDataBoundControl or not?

    02-04-2009, 12:24 PM
    Answer
    • Member
      689 point Member
    • ihsany
    • Member since 05-17-2008, 3:05 AM
    • Turkey
    • Posts 156

    hi RamonTv,

    first of all, if you can buy a grid component, you must buy one of the grid component.. this is easy way.

    if not;

    you can browse for Matt's Real World Gridview  

    i hope this helps you..

    ihsany
    ######
    Make It Easy
    --------------dont forget to click <Mark As Answer>------------------
Page 1 of 1 (2 items)