Lookup in gridview

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

    Lookup in gridview

    Hi

    I have a gridview bound to a backend table A via dataset/data adapter. A
    drop down is bound to a second table B. When user selects a value form drop
    down I want to lookup another column in table B based on value selected from
    drop down and assign the lookup value to a column in gridviw. How can I pick
    the value selected by user and do the lookup from table B?

    Thanks

    Regards


  • Cor Ligthert[MVP]

    #2
    Re: Lookup in gridview

    John,

    A gridview does not work on a Windows form, therefore are you sure that it
    is a gridview, because that is an ASPNET control.

    Cor

    "John" <info@nospam.in fovis.co.ukschr eef in bericht
    news:O76ysK82IH A.4928@TK2MSFTN GP04.phx.gbl...
    Hi
    >
    I have a gridview bound to a backend table A via dataset/data adapter. A
    drop down is bound to a second table B. When user selects a value form
    drop down I want to lookup another column in table B based on value
    selected from drop down and assign the lookup value to a column in
    gridviw. How can I pick the value selected by user and do the lookup from
    table B?
    >
    Thanks
    >
    Regards
    >
    >

    Comment

    • John

      #3
      Re: Lookup in gridview

      DataGridView is available on WinForm in vs2008. I don't understand what you
      mean.

      Regards

      "Cor Ligthert[MVP]" <notmyfirstname @planet.nlwrote in message
      news:622D4A96-6202-4175-9C9C-ED9893FF43AC@mi crosoft.com...
      John,
      >
      A gridview does not work on a Windows form, therefore are you sure that it
      is a gridview, because that is an ASPNET control.
      >
      Cor
      >
      "John" <info@nospam.in fovis.co.ukschr eef in bericht
      news:O76ysK82IH A.4928@TK2MSFTN GP04.phx.gbl...
      >Hi
      >>
      >I have a gridview bound to a backend table A via dataset/data adapter. A
      >drop down is bound to a second table B. When user selects a value form
      >drop down I want to lookup another column in table B based on value
      >selected from drop down and assign the lookup value to a column in
      >gridviw. How can I pick the value selected by user and do the lookup from
      >table B?
      >>
      >Thanks
      >>
      >Regards
      >>
      >>
      >

      Comment

      • =?Utf-8?B?RWxGZXI=?=

        #4
        Re: Lookup in gridview

        Use "SelectedVa lue" property from ComboBox


        "John" wrote:
        DataGridView is available on WinForm in vs2008. I don't understand what you
        mean.
        >
        Regards
        >
        "Cor Ligthert[MVP]" <notmyfirstname @planet.nlwrote in message
        news:622D4A96-6202-4175-9C9C-ED9893FF43AC@mi crosoft.com...
        John,

        A gridview does not work on a Windows form, therefore are you sure that it
        is a gridview, because that is an ASPNET control.

        Cor

        "John" <info@nospam.in fovis.co.ukschr eef in bericht
        news:O76ysK82IH A.4928@TK2MSFTN GP04.phx.gbl...
        Hi
        >
        I have a gridview bound to a backend table A via dataset/data adapter. A
        drop down is bound to a second table B. When user selects a value form
        drop down I want to lookup another column in table B based on value
        selected from drop down and assign the lookup value to a column in
        gridviw. How can I pick the value selected by user and do the lookup from
        table B?
        >
        Thanks
        >
        Regards
        >
        >
        >
        >
        >

        Comment

        • Cor Ligthert[MVP]

          #5
          Re: Lookup in gridview

          John,
          DataGridView is available on WinForm in vs2008. I don't understand what
          you mean.
          >
          As well is the combobox, but the GridView as in your original post and in
          the subject of these messages is like the DropDown in your message not both
          are ASPNET controls. So what kind of help you want as you don't even try to
          describe your problem well?

          I saw that you probably was not meaning the GridView as you asked your
          question about and the dropdown because of the many crosspost you had made
          which in that windowsforms.

          But as most of us, we want to help people but than we expect that the poster
          at least takes some time to describe his problem well.

          Cor

          Comment

          • Backwater Geezer

            #6
            Re: Lookup in gridview

            Cor Ligthert(MVP),

            Which software did you use to translate your thoughts into English?

            MH

            Comment

            • Cor Ligthert [MVP]

              #7
              Re: Lookup in gridview

              As I had used software to translate, then it would have been much better.

              However you probably speak only English and don't know that people who speak
              more languages simple think in that language. That those thought don't come
              always readable on paper, has nothing to do with translating,.

              However with changing the text to many times.

              But are one liners the only thing you can write?

              Cor

              "Backwater Geezer" <geezer@eu.cons chreef in bericht
              news:%23jhmoDO3 IHA.2064@TK2MSF TNGP02.phx.gbl. ..
              Cor Ligthert(MVP),
              >
              Which software did you use to translate your thoughts into English?
              >
              MH
              >

              Comment

              Working...