Click Event in a DataGrid

  • Thread starter Thread starter Michael Murschell
  • Start date Start date
M

Michael Murschell

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
 
Untested but . . .

In the click event

System.Diagnostics.Process.Start("wlk.exe.exe " &
dgPeople.CurrentCell.ToString() )

OHM#

Michael said:
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 address removed)
 
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.
 
OK, then CurrentCellChanged should do it

OHM#

Michael said:
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.

Regards - OHM# (e-mail address 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.
 
Back
Top