Is there any examples about DAL or BLL binding data to datagridview?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • abc my vclass

    Is there any examples about DAL or BLL binding data to datagridview?

    There are some programs written on .NET 1.1. These applications are apply
    n-tiers contains Data Access Layers or Business Logic Layer. Now, our
    company upgrade to .NET 2.0 and enhance or rewrite the applications. In
    ..NET 1.1, we favour to return DataTable from DAL or BLL and then press to
    datagrid's datasource and to bind data. Now, I think .NET 2.0 have some
    difference to bind data. Is there any good example let me to know how to
    binding data between datagridview / input controls and DAL or BLL?


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Is there any examples about DAL or BLL binding data to datagridview?

    The data binding model between .NET 1.1 and .NET 2.0 has not changed.
    Some convenience classes have been added (such as BindingSource), but your
    data binding code should work just fine in the two versions. There is no
    need to change any of that.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "abc my vclass" <myabcclass@myc lass.com> wrote in message
    news:u3YqdmA$FH A.912@TK2MSFTNG P11.phx.gbl...[color=blue]
    > There are some programs written on .NET 1.1. These applications are apply
    > n-tiers contains Data Access Layers or Business Logic Layer. Now, our
    > company upgrade to .NET 2.0 and enhance or rewrite the applications. In
    > .NET 1.1, we favour to return DataTable from DAL or BLL and then press to
    > datagrid's datasource and to bind data. Now, I think .NET 2.0 have some
    > difference to bind data. Is there any good example let me to know how to
    > binding data between datagridview / input controls and DAL or BLL?
    >[/color]


    Comment

    • abc my vclass

      #3
      Re: Is there any examples about DAL or BLL binding data to datagridview?

      The GridDataView has not BindData method. How should I do it?

      GridDataView.Da taSource = CustomersBLL.Ge tSimpleList(); // This returns
      Simple Customers List DataTable.
      GridDataView.Bi ndData();




      "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> ¼¶¼g©ó¶l¥ó·s»D: u09aauA$FHA.272 @tk2msftngp13.p hx.gbl...[color=blue]
      > The data binding model between .NET 1.1 and .NET 2.0 has not changed.
      > Some convenience classes have been added (such as BindingSource), but your
      > data binding code should work just fine in the two versions. There is no
      > need to change any of that.
      >
      > Hope this helps.
      >
      >
      > --
      > - Nicholas Paldino [.NET/C# MVP]
      > - mvp@spam.guard. caspershouse.co m
      >
      > "abc my vclass" <myabcclass@myc lass.com> wrote in message
      > news:u3YqdmA$FH A.912@TK2MSFTNG P11.phx.gbl...[color=green]
      >> There are some programs written on .NET 1.1. These applications are
      >> apply n-tiers contains Data Access Layers or Business Logic Layer. Now,
      >> our company upgrade to .NET 2.0 and enhance or rewrite the applications.
      >> In .NET 1.1, we favour to return DataTable from DAL or BLL and then press
      >> to datagrid's datasource and to bind data. Now, I think .NET 2.0 have
      >> some difference to bind data. Is there any good example let me to know
      >> how to binding data between datagridview / input controls and DAL or BLL?
      >>[/color]
      >
      >[/color]


      Comment

      • Nicholas Paldino [.NET/C# MVP]

        #4
        Re: Is there any examples about DAL or BLL binding data to datagridview?

        What do you need a BindData method for? Once you set the data source,
        it should display the data (either that, or you need to set up the columns
        which are going to be displayed).

        If this is the case, that you aren't configuring the view, check out the
        "About" section of the documentation for the DataGridView class. It shows
        an example of how to configure a grid (the columns for display, that is).

        Hope this helps.


        --
        - Nicholas Paldino [.NET/C# MVP]
        - mvp@spam.guard. caspershouse.co m

        "abc my vclass" <myabcclass@myc lass.com> wrote in message
        news:ulZdY3A$FH A.2708@TK2MSFTN GP12.phx.gbl...[color=blue]
        > The GridDataView has not BindData method. How should I do it?
        >
        > GridDataView.Da taSource = CustomersBLL.Ge tSimpleList(); // This returns
        > Simple Customers List DataTable.
        > GridDataView.Bi ndData();
        >
        >
        >
        >
        > "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om>
        > ¼¶¼g©ó¶l¥ó·s»D: u09aauA$FHA.272 @tk2msftngp13.p hx.gbl...[color=green]
        >> The data binding model between .NET 1.1 and .NET 2.0 has not changed.
        >> Some convenience classes have been added (such as BindingSource), but
        >> your data binding code should work just fine in the two versions. There
        >> is no need to change any of that.
        >>
        >> Hope this helps.
        >>
        >>
        >> --
        >> - Nicholas Paldino [.NET/C# MVP]
        >> - mvp@spam.guard. caspershouse.co m
        >>
        >> "abc my vclass" <myabcclass@myc lass.com> wrote in message
        >> news:u3YqdmA$FH A.912@TK2MSFTNG P11.phx.gbl...[color=darkred]
        >>> There are some programs written on .NET 1.1. These applications are
        >>> apply n-tiers contains Data Access Layers or Business Logic Layer. Now,
        >>> our company upgrade to .NET 2.0 and enhance or rewrite the applications.
        >>> In .NET 1.1, we favour to return DataTable from DAL or BLL and then
        >>> press to datagrid's datasource and to bind data. Now, I think .NET 2.0
        >>> have some difference to bind data. Is there any good example let me to
        >>> know how to binding data between datagridview / input controls and DAL
        >>> or BLL?
        >>>[/color]
        >>
        >>[/color]
        >
        >[/color]


        Comment

        Working...