PC Review


Reply
Thread Tools Rate Thread

Click Event in a DataGrid

 
 
Michael Murschell
Guest
Posts: n/a
 
      10th Dec 2003
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=ClickedField



 
Reply With Quote
 
 
 
 
One Handed Man [ OHM# ]
Guest
Posts: n/a
 
      10th Dec 2003
Untested but . . .

In the click event

System.Diagnostics.Process.Start("wlk.exe.exe " &
dgPeople.CurrentCell.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=ClickedField


Regards - OHM# (E-Mail Removed)


 
Reply With Quote
 
Michael Murschell
Guest
Posts: n/a
 
      10th Dec 2003
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# ]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Untested but . . .
>
> In the click event
>
> System.Diagnostics.Process.Start("wlk.exe.exe " &
> dgPeople.CurrentCell.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=ClickedField

>
> Regards - OHM# (E-Mail Removed)
>
>



 
Reply With Quote
 
One Handed Man [ OHM# ]
Guest
Posts: n/a
 
      10th Dec 2003
OK, then CurrentCellChanged 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# ]" <(E-Mail Removed)> wrote in
> message news:%(E-Mail Removed)...
>> Untested but . . .
>>
>> In the click event
>>
>> System.Diagnostics.Process.Start("wlk.exe.exe " &
>> dgPeople.CurrentCell.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=ClickedField

>>
>> Regards - OHM# (E-Mail Removed)


Regards - OHM# (E-Mail Removed)


 
Reply With Quote
 
Michael Murschell
Guest
Posts: n/a
 
      10th Dec 2003
Perfect!!! Thank you!!!

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

"One Handed Man [ OHM# ]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> OK, then CurrentCellChanged 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# ]" <(E-Mail Removed)> wrote in
> > message news:%(E-Mail Removed)...
> >> Untested but . . .
> >>
> >> In the click event
> >>
> >> System.Diagnostics.Process.Start("wlk.exe.exe " &
> >> dgPeople.CurrentCell.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=ClickedField
> >>
> >> Regards - OHM# (E-Mail Removed)

>
> Regards - OHM# (E-Mail Removed)
>
>



 
Reply With Quote
 
Michael Murschell
Guest
Posts: n/a
 
      10th Dec 2003
I got it...

dgPeople.Item(dgPeople.CurrentCell)


"Michael Murschell" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Perfect!!! Thank you!!!
>
> Now I just need to figure out how to get the text in the field. The
> dgPeople.CurrentCell.ToString() gives you the coordinance.
>
> "One Handed Man [ OHM# ]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > OK, then CurrentCellChanged 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# ]" <(E-Mail Removed)> wrote in
> > > message news:%(E-Mail Removed)...
> > >> Untested but . . .
> > >>
> > >> In the click event
> > >>
> > >> System.Diagnostics.Process.Start("wlk.exe.exe " &
> > >> dgPeople.CurrentCell.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=ClickedField
> > >>
> > >> Regards - OHM# (E-Mail Removed)

> >
> > Regards - OHM# (E-Mail Removed)
> >
> >

>
>
>



 
Reply With Quote
 
One Handed Man [ OHM# ]
Guest
Posts: n/a
 
      11th Dec 2003
Glad I could help.

OHM#

Michael Murschell wrote:
> I got it...
>
> dgPeople.Item(dgPeople.CurrentCell)
>
>
> "Michael Murschell" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Perfect!!! Thank you!!!
>>
>> Now I just need to figure out how to get the text in the field. The
>> dgPeople.CurrentCell.ToString() gives you the coordinance.
>>
>> "One Handed Man [ OHM# ]" <(E-Mail Removed)> wrote in
>> message news:(E-Mail Removed)...
>>> OK, then CurrentCellChanged 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# ]" <(E-Mail Removed)> wrote in
>>>> message news:%(E-Mail Removed)...
>>>>> Untested but . . .
>>>>>
>>>>> In the click event
>>>>>
>>>>> System.Diagnostics.Process.Start("wlk.exe.exe " &
>>>>> dgPeople.CurrentCell.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=ClickedField
>>>>>
>>>>> Regards - OHM# (E-Mail Removed)
>>>
>>> Regards - OHM# (E-Mail Removed)


Regards - OHM# (E-Mail Removed)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid Click event =?Utf-8?B?amM=?= Microsoft C# .NET 0 25th May 2006 07:04 AM
DataGrid.Click Event =?Utf-8?B?TGkgUGFuZw==?= Microsoft VB .NET 2 8th Nov 2004 10:43 PM
Datagrid Click Event Carl Microsoft VB .NET 3 9th Jan 2004 06:10 PM
DataGrid row click event Aamir Microsoft C# .NET 1 3rd Dec 2003 04:12 PM
Click event in DataGrid. edgarjang Microsoft Dot NET Compact Framework 1 21st Aug 2003 02:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:15 PM.