Click Event in a DataGrid

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

    Click Event in a DataGrid

    Can I set up a DataGrid to do this...

    When I click on a particular field in a DataGrid, it opens up another
    program called wlk.exe and send it the text of the field I clicked on?

    So it would be like wlk Fld1=ClickedFie ld



  • One Handed Man [ OHM# ]

    #2
    Re: Click Event in a DataGrid

    Untested but . . .

    In the click event

    System.Diagnost ics.Process.Sta rt("wlk.exe.ex e " &
    dgPeople.Curren tCell.ToString( ) )

    OHM#

    Michael Murschell wrote:[color=blue]
    > Can I set up a DataGrid to do this...
    >
    > When I click on a particular field in a DataGrid, it opens up another
    > program called wlk.exe and send it the text of the field I clicked on?
    >
    > So it would be like wlk Fld1=ClickedFie ld[/color]

    Regards - OHM# OneHandedMan@BT Internet.com


    Comment

    • Michael Murschell

      #3
      Re: Click Event in a DataGrid

      The Click event doesn't seem to work when I click on a field in the
      DataGrid. It does work when I click on empty space in the DataGrid.

      "One Handed Man [ OHM# ]" <OneHandedMan@B TInternet.com> wrote in message
      news:%23K9rCi0v DHA.2448@TK2MSF TNGP09.phx.gbl. ..[color=blue]
      > Untested but . . .
      >
      > In the click event
      >
      > System.Diagnost ics.Process.Sta rt("wlk.exe.ex e " &
      > dgPeople.Curren tCell.ToString( ) )
      >
      > OHM#
      >
      > Michael Murschell wrote:[color=green]
      > > Can I set up a DataGrid to do this...
      > >
      > > When I click on a particular field in a DataGrid, it opens up another
      > > program called wlk.exe and send it the text of the field I clicked on?
      > >
      > > So it would be like wlk Fld1=ClickedFie ld[/color]
      >
      > Regards - OHM# OneHandedMan@BT Internet.com
      >
      >[/color]


      Comment

      • One Handed Man [ OHM# ]

        #4
        Re: Click Event in a DataGrid

        OK, then CurrentCellChan ged should do it

        OHM#

        Michael Murschell wrote:[color=blue]
        > The Click event doesn't seem to work when I click on a field in the
        > DataGrid. It does work when I click on empty space in the DataGrid.
        >
        > "One Handed Man [ OHM# ]" <OneHandedMan@B TInternet.com> wrote in
        > message news:%23K9rCi0v DHA.2448@TK2MSF TNGP09.phx.gbl. ..[color=green]
        >> Untested but . . .
        >>
        >> In the click event
        >>
        >> System.Diagnost ics.Process.Sta rt("wlk.exe.ex e " &
        >> dgPeople.Curren tCell.ToString( ) )
        >>
        >> OHM#
        >>
        >> Michael Murschell wrote:[color=darkred]
        >>> Can I set up a DataGrid to do this...
        >>>
        >>> When I click on a particular field in a DataGrid, it opens up
        >>> another program called wlk.exe and send it the text of the field I
        >>> clicked on?
        >>>
        >>> So it would be like wlk Fld1=ClickedFie ld[/color]
        >>
        >> Regards - OHM# OneHandedMan@BT Internet.com[/color][/color]

        Regards - OHM# OneHandedMan@BT Internet.com


        Comment

        • Michael Murschell

          #5
          Re: Click Event in a DataGrid

          Perfect!!! Thank you!!!

          Now I just need to figure out how to get the text in the field. The
          dgPeople.Curren tCell.ToString( ) gives you the coordinance.

          "One Handed Man [ OHM# ]" <OneHandedMan@B TInternet.com> wrote in message
          news:eNtXFM1vDH A.1996@TK2MSFTN GP12.phx.gbl...[color=blue]
          > OK, then CurrentCellChan ged should do it
          >
          > OHM#
          >
          > Michael Murschell wrote:[color=green]
          > > The Click event doesn't seem to work when I click on a field in the
          > > DataGrid. It does work when I click on empty space in the DataGrid.
          > >
          > > "One Handed Man [ OHM# ]" <OneHandedMan@B TInternet.com> wrote in
          > > message news:%23K9rCi0v DHA.2448@TK2MSF TNGP09.phx.gbl. ..[color=darkred]
          > >> Untested but . . .
          > >>
          > >> In the click event
          > >>
          > >> System.Diagnost ics.Process.Sta rt("wlk.exe.ex e " &
          > >> dgPeople.Curren tCell.ToString( ) )
          > >>
          > >> OHM#
          > >>
          > >> Michael Murschell wrote:
          > >>> Can I set up a DataGrid to do this...
          > >>>
          > >>> When I click on a particular field in a DataGrid, it opens up
          > >>> another program called wlk.exe and send it the text of the field I
          > >>> clicked on?
          > >>>
          > >>> So it would be like wlk Fld1=ClickedFie ld
          > >>
          > >> Regards - OHM# OneHandedMan@BT Internet.com[/color][/color]
          >
          > Regards - OHM# OneHandedMan@BT Internet.com
          >
          >[/color]


          Comment

          • Michael Murschell

            #6
            Re: Click Event in a DataGrid

            I got it...

            dgPeople.Item(d gPeople.Current Cell)


            "Michael Murschell" <mmurschell@gon elco.com> wrote in message
            news:uONYO61vDH A.2180@TK2MSFTN GP09.phx.gbl...[color=blue]
            > Perfect!!! Thank you!!!
            >
            > Now I just need to figure out how to get the text in the field. The
            > dgPeople.Curren tCell.ToString( ) gives you the coordinance.
            >
            > "One Handed Man [ OHM# ]" <OneHandedMan@B TInternet.com> wrote in message
            > news:eNtXFM1vDH A.1996@TK2MSFTN GP12.phx.gbl...[color=green]
            > > OK, then CurrentCellChan ged should do it
            > >
            > > OHM#
            > >
            > > Michael Murschell wrote:[color=darkred]
            > > > The Click event doesn't seem to work when I click on a field in the
            > > > DataGrid. It does work when I click on empty space in the DataGrid.
            > > >
            > > > "One Handed Man [ OHM# ]" <OneHandedMan@B TInternet.com> wrote in
            > > > message news:%23K9rCi0v DHA.2448@TK2MSF TNGP09.phx.gbl. ..
            > > >> Untested but . . .
            > > >>
            > > >> In the click event
            > > >>
            > > >> System.Diagnost ics.Process.Sta rt("wlk.exe.ex e " &
            > > >> dgPeople.Curren tCell.ToString( ) )
            > > >>
            > > >> OHM#
            > > >>
            > > >> Michael Murschell wrote:
            > > >>> Can I set up a DataGrid to do this...
            > > >>>
            > > >>> When I click on a particular field in a DataGrid, it opens up
            > > >>> another program called wlk.exe and send it the text of the field I
            > > >>> clicked on?
            > > >>>
            > > >>> So it would be like wlk Fld1=ClickedFie ld
            > > >>
            > > >> Regards - OHM# OneHandedMan@BT Internet.com[/color]
            > >
            > > Regards - OHM# OneHandedMan@BT Internet.com
            > >
            > >[/color]
            >
            >
            >[/color]


            Comment

            • One Handed Man [ OHM# ]

              #7
              Re: Click Event in a DataGrid

              Glad I could help.

              OHM#

              Michael Murschell wrote:[color=blue]
              > I got it...
              >
              > dgPeople.Item(d gPeople.Current Cell)
              >
              >
              > "Michael Murschell" <mmurschell@gon elco.com> wrote in message
              > news:uONYO61vDH A.2180@TK2MSFTN GP09.phx.gbl...[color=green]
              >> Perfect!!! Thank you!!!
              >>
              >> Now I just need to figure out how to get the text in the field. The
              >> dgPeople.Curren tCell.ToString( ) gives you the coordinance.
              >>
              >> "One Handed Man [ OHM# ]" <OneHandedMan@B TInternet.com> wrote in
              >> message news:eNtXFM1vDH A.1996@TK2MSFTN GP12.phx.gbl...[color=darkred]
              >>> OK, then CurrentCellChan ged should do it
              >>>
              >>> OHM#
              >>>
              >>> Michael Murschell wrote:
              >>>> The Click event doesn't seem to work when I click on a field in the
              >>>> DataGrid. It does work when I click on empty space in the DataGrid.
              >>>>
              >>>> "One Handed Man [ OHM# ]" <OneHandedMan@B TInternet.com> wrote in
              >>>> message news:%23K9rCi0v DHA.2448@TK2MSF TNGP09.phx.gbl. ..
              >>>>> Untested but . . .
              >>>>>
              >>>>> In the click event
              >>>>>
              >>>>> System.Diagnost ics.Process.Sta rt("wlk.exe.ex e " &
              >>>>> dgPeople.Curren tCell.ToString( ) )
              >>>>>
              >>>>> OHM#
              >>>>>
              >>>>> Michael Murschell wrote:
              >>>>>> Can I set up a DataGrid to do this...
              >>>>>>
              >>>>>> When I click on a particular field in a DataGrid, it opens up
              >>>>>> another program called wlk.exe and send it the text of the field
              >>>>>> I clicked on?
              >>>>>>
              >>>>>> So it would be like wlk Fld1=ClickedFie ld
              >>>>>
              >>>>> Regards - OHM# OneHandedMan@BT Internet.com
              >>>
              >>> Regards - OHM# OneHandedMan@BT Internet.com[/color][/color][/color]

              Regards - OHM# OneHandedMan@BT Internet.com


              Comment

              Working...