default view

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

    #1

    default view

    hey all,

    given
    DataSet11.Produ cts.DefaultView .Sort = fieldName & " " & sortDirection

    is there a way to iterate thru the dataset using the default view or just in
    a particular order?

    thanks,
    rodchar
  • Kevin Spencer

    #2
    Re: default view

    Sure. Just iterate through the View.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    Ambiguity has a certain quality to it.

    "rodchar" <rodchar@discus sions.microsoft .com> wrote in message
    news:37167FEB-F967-46D9-9C61-54767475B07E@mi crosoft.com...[color=blue]
    > hey all,
    >
    > given
    > DataSet11.Produ cts.DefaultView .Sort = fieldName & " " & sortDirection
    >
    > is there a way to iterate thru the dataset using the default view or just
    > in
    > a particular order?
    >
    > thanks,
    > rodchar[/color]


    Comment

    • rodchar

      #3
      Re: default view


      DataSet11.Produ cts.DefaultView .Sort = fieldName & " " & sortDirection

      After the preceding line runs should the view be sorted?

      because when i try

      for each datarow as dataset11.datar ow in dataset11.Produ cts.DefaultView
      next

      i get a specified cast is invalid.



      "Kevin Spencer" wrote:
      [color=blue]
      > Sure. Just iterate through the View.
      >
      > --
      > HTH,
      >
      > Kevin Spencer
      > Microsoft MVP
      > ..Net Developer
      > Ambiguity has a certain quality to it.
      >
      > "rodchar" <rodchar@discus sions.microsoft .com> wrote in message
      > news:37167FEB-F967-46D9-9C61-54767475B07E@mi crosoft.com...[color=green]
      > > hey all,
      > >
      > > given
      > > DataSet11.Produ cts.DefaultView .Sort = fieldName & " " & sortDirection
      > >
      > > is there a way to iterate thru the dataset using the default view or just
      > > in
      > > a particular order?
      > >
      > > thanks,
      > > rodchar[/color]
      >
      >
      >[/color]

      Comment

      Working...