Binding Grid

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DataGridUser

    #1

    Binding Grid

    Hello all,
    I am using a DataGrid, How can i bind a DataGrid to a
    WebService which returns DataSet.


    Thanks
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Binding Grid

    DataGridUser,

    If the webservice returns a type of DataSet, then all you really have to
    do is take that result and assign it to the DataSource property of the
    DataGrid. The grid should take care of the rest for you.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - nick(dot)paldin o=at=exisconsul ting<dot>com

    "DataGridUs er" <Datagrid@hotma il.com> wrote in message
    news:073a01c386 b9$5aed78d0$a40 1280a@phx.gbl.. .[color=blue]
    > Hello all,
    > I am using a DataGrid, How can i bind a DataGrid to a
    > WebService which returns DataSet.
    >
    >
    > Thanks[/color]


    Comment

    • Dmitriy Lapshin [C# / .NET MVP]

      #3
      Re: Binding Grid

      Nicholas,

      My experience proves that it is better to call the SetDataBinding method in
      case of the Windows Forms DataGrid. I really don't know why but it really
      helps to resolve some weird issues sometimes.

      --
      Dmitriy Lapshin [C# / .NET MVP]
      X-Unity Test Studio

      Bring the power of unit testing to VS .NET IDE

      "Nicholas Paldino [.NET/C# MVP]" <nicholas.paldi no@exisconsulti ng.com> wrote
      in message news:erI7SqshDH A.692@TK2MSFTNG P12.phx.gbl...[color=blue]
      > DataGridUser,
      >
      > If the webservice returns a type of DataSet, then all you really have[/color]
      to[color=blue]
      > do is take that result and assign it to the DataSource property of the
      > DataGrid. The grid should take care of the rest for you.
      >
      > Hope this helps.
      >
      >
      > --
      > - Nicholas Paldino [.NET/C# MVP]
      > - nick(dot)paldin o=at=exisconsul ting<dot>com
      >
      > "DataGridUs er" <Datagrid@hotma il.com> wrote in message
      > news:073a01c386 b9$5aed78d0$a40 1280a@phx.gbl.. .[color=green]
      > > Hello all,
      > > I am using a DataGrid, How can i bind a DataGrid to a
      > > WebService which returns DataSet.
      > >
      > >
      > > Thanks[/color]
      >
      >[/color]

      Comment

      Working...