get values from a dataset

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • microsoft.news.com

    get values from a dataset

    how can I get the values from my dataset to populate a form?
    I have the dataset in XML and I want to read it and get the data values out
    of it to populate my form.
    I want to show them all and not in text boxes just write them out to the
    screen.



  • Ignacio Machin \( .NET/ C# MVP \)

    #2
    Re: get values from a dataset

    Hi,

    Use a DataGrid , or a ListView for this.

    Cheers,

    --
    Ignacio Machin,
    ignacio.machin AT dot.state.fl.us
    Florida Department Of Transportation



    "microsoft.news .com" <CSharpCoder> wrote in message
    news:eOx9FHhYFH A.3380@TK2MSFTN GP10.phx.gbl...[color=blue]
    > how can I get the values from my dataset to populate a form?
    > I have the dataset in XML and I want to read it and get the data values
    > out of it to populate my form.
    > I want to show them all and not in text boxes just write them out to the
    > screen.
    >
    >
    >[/color]


    Comment

    • microsoft.news.com

      #3
      Re: get values from a dataset

      I just can;t read the data set and get the values that way, I have to use a
      control?


      "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us > wrote
      in message news:%23IvKAAiY FHA.4036@tk2msf tngp13.phx.gbl. ..[color=blue]
      > Hi,
      >
      > Use a DataGrid , or a ListView for this.
      >
      > Cheers,
      >
      > --
      > Ignacio Machin,
      > ignacio.machin AT dot.state.fl.us
      > Florida Department Of Transportation
      >
      >
      >
      > "microsoft.news .com" <CSharpCoder> wrote in message
      > news:eOx9FHhYFH A.3380@TK2MSFTN GP10.phx.gbl...[color=green]
      >> how can I get the values from my dataset to populate a form?
      >> I have the dataset in XML and I want to read it and get the data values
      >> out of it to populate my form.
      >> I want to show them all and not in text boxes just write them out to the
      >> screen.
      >>
      >>
      >>[/color]
      >
      >[/color]


      Comment

      • Ignacio Machin \( .NET/ C# MVP \)

        #4
        Re: get values from a dataset

        Hi,

        Well you could draw then on the form if you want, is just that it does not
        make much sense, it's better if you use a ListView for example to display
        them. The control will handle the Scroll and all other details about the
        displaying of the info.


        cheers,

        --
        Ignacio Machin,
        ignacio.machin AT dot.state.fl.us
        Florida Department Of Transportation



        "microsoft.news .com" <CSharpCoder> wrote in message
        news:eSejhEiYFH A.1344@TK2MSFTN GP15.phx.gbl...[color=blue]
        >I just can;t read the data set and get the values that way, I have to use a
        >control?
        >
        >
        > "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us >
        > wrote in message news:%23IvKAAiY FHA.4036@tk2msf tngp13.phx.gbl. ..[color=green]
        >> Hi,
        >>
        >> Use a DataGrid , or a ListView for this.
        >>
        >> Cheers,
        >>
        >> --
        >> Ignacio Machin,
        >> ignacio.machin AT dot.state.fl.us
        >> Florida Department Of Transportation
        >>
        >>
        >>
        >> "microsoft.news .com" <CSharpCoder> wrote in message
        >> news:eOx9FHhYFH A.3380@TK2MSFTN GP10.phx.gbl...[color=darkred]
        >>> how can I get the values from my dataset to populate a form?
        >>> I have the dataset in XML and I want to read it and get the data values
        >>> out of it to populate my form.
        >>> I want to show them all and not in text boxes just write them out to the
        >>> screen.
        >>>
        >>>
        >>>[/color]
        >>
        >>[/color]
        >
        >[/color]


        Comment

        • microsoft.news.com

          #5
          Re: get values from a dataset

          then with a control how can i accomplish this:

          this is my data set:
          <LocationData >
          <Location>
          <State>Delaware </State>
          <City>Dover</City>
          </Location>
          <Location>
          <State>New York</State>
          <City>Fishkil l</City>
          </Location>
          <Location>
          <State>Delaware </State>
          <City>Wilmingto n</City>
          </Location>
          <Location>
          <State>New York</State>
          <City>Syracus e</City>
          </Location>
          </LocationData>

          and show it like this?

          Delaware Dover
          Wilmington
          New York Fishkill
          Syracuse

          "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us > wrote
          in message news:%23uxOjKiY FHA.3960@TK2MSF TNGP10.phx.gbl. ..[color=blue]
          > Hi,
          >
          > Well you could draw then on the form if you want, is just that it does not
          > make much sense, it's better if you use a ListView for example to display
          > them. The control will handle the Scroll and all other details about the
          > displaying of the info.
          >
          >
          > cheers,
          >
          > --
          > Ignacio Machin,
          > ignacio.machin AT dot.state.fl.us
          > Florida Department Of Transportation
          >
          >
          >
          > "microsoft.news .com" <CSharpCoder> wrote in message
          > news:eSejhEiYFH A.1344@TK2MSFTN GP15.phx.gbl...[color=green]
          >>I just can;t read the data set and get the values that way, I have to use
          >>a control?
          >>
          >>
          >> "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us >
          >> wrote in message news:%23IvKAAiY FHA.4036@tk2msf tngp13.phx.gbl. ..[color=darkred]
          >>> Hi,
          >>>
          >>> Use a DataGrid , or a ListView for this.
          >>>
          >>> Cheers,
          >>>
          >>> --
          >>> Ignacio Machin,
          >>> ignacio.machin AT dot.state.fl.us
          >>> Florida Department Of Transportation
          >>>
          >>>
          >>>
          >>> "microsoft.news .com" <CSharpCoder> wrote in message
          >>> news:eOx9FHhYFH A.3380@TK2MSFTN GP10.phx.gbl...
          >>>> how can I get the values from my dataset to populate a form?
          >>>> I have the dataset in XML and I want to read it and get the data values
          >>>> out of it to populate my form.
          >>>> I want to show them all and not in text boxes just write them out to
          >>>> the screen.
          >>>>
          >>>>
          >>>>
          >>>
          >>>[/color]
          >>
          >>[/color]
          >
          >[/color]


          Comment

          Working...