Loop through all dataadapters

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

    #1

    Loop through all dataadapters

    Is it possible to loop through all dataadapters on page?

    Thanks


  • Steve C. Orr, MCSD

    #2
    Re: Loop through all dataadapters

    If you drop them onto your form at design time then it may be possible to
    loop through the controls collection and then work with each control where
    the TypeOf var Is System.Data.SQL Client.DataAdap ter.
    If you create them at runtime then they wouldn't be in the controls
    collection. Instead you'd have to add them to a collection of your own and
    then loop through that.

    --
    I hope this helps,
    Steve C. Orr, MCSD



    "Vik" <viktorum@==yah oo.com==> wrote in message
    news:u407bx8SDH A.2196@TK2MSFTN GP12.phx.gbl...[color=blue]
    > Is it possible to loop through all dataadapters on page?
    >
    > Thanks
    >
    >[/color]


    Comment

    • Vik

      #3
      Re: Loop through all dataadapters

      Thanks.

      Which controls collection contains the dataadapters added at design time? It
      seems the dataadapters are not a part of a page's controls.

      Vik

      "Steve C. Orr, MCSD" <Steve@Orr.ne t> wrote in message
      news:ucQNTK9SDH A.1036@TK2MSFTN GP10.phx.gbl...[color=blue]
      > If you drop them onto your form at design time then it may be possible to
      > loop through the controls collection and then work with each control where
      > the TypeOf var Is System.Data.SQL Client.DataAdap ter.
      > If you create them at runtime then they wouldn't be in the controls
      > collection. Instead you'd have to add them to a collection of your own[/color]
      and[color=blue]
      > then loop through that.
      >
      > --
      > I hope this helps,
      > Steve C. Orr, MCSD
      > http://Steve.Orr.net
      >
      >
      > "Vik" <viktorum@==yah oo.com==> wrote in message
      > news:u407bx8SDH A.2196@TK2MSFTN GP12.phx.gbl...[color=green]
      > > Is it possible to loop through all dataadapters on page?
      > >
      > > Thanks
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...