Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. datagrid to windows form

datagrid to windows form

Scheduled Pinned Locked Moved C#
questiontutorialannouncement
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ASGill
    wrote on last edited by
    #1

    hi, i have a form(frmQueue) where i've put a datagrid control with only one column on it. when the user clicks on the "Update" button it gets whatever info from the datasource and displays it in the datagrid. the user can then select a particular column and click a "Get Details" button, when the button is clicked, i want the details to be displayed in textboxes in another form(frmTransaction). my question is how do i code the Get Details button. im new to this language...so an example would really get me working. thx in advance When a man's wife starts to understand him, she usually stops listening to him. :wtf:

    M 1 Reply Last reply
    0
    • A ASGill

      hi, i have a form(frmQueue) where i've put a datagrid control with only one column on it. when the user clicks on the "Update" button it gets whatever info from the datasource and displays it in the datagrid. the user can then select a particular column and click a "Get Details" button, when the button is clicked, i want the details to be displayed in textboxes in another form(frmTransaction). my question is how do i code the Get Details button. im new to this language...so an example would really get me working. thx in advance When a man's wife starts to understand him, she usually stops listening to him. :wtf:

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      Change the constructor of your second form and add a srting parameter to it. And when you create it in your button event handler, pass he column name there and proccess it in second form. Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope

      A 1 Reply Last reply
      0
      • M Mazdak

        Change the constructor of your second form and add a srting parameter to it. And when you create it in your button event handler, pass he column name there and proccess it in second form. Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope

        A Offline
        A Offline
        ASGill
        wrote on last edited by
        #3

        Hi Mazy, When u said to pass the column name, did u mean the column name from the datasource or the datagrid?. i just wanna confirm.

        M 1 Reply Last reply
        0
        • A ASGill

          Hi Mazy, When u said to pass the column name, did u mean the column name from the datasource or the datagrid?. i just wanna confirm.

          M Offline
          M Offline
          Mazdak
          wrote on last edited by
          #4

          DataSource Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups