Selecting cell value from grid row

  • Thread starter Thread starter Kimbo
  • Start date Start date
K

Kimbo

Hi

I have a stored procedure which returns a number of rows
into a grid, the first cell of the row contains an Acc number for a
client, what I want to do is double or single click on the cell and
have it use the vale in the Acc number cell as a parameter for
a query to return data on that client, any ideas on how this can
be done.

Regards
Kimbo
 
DataGrid has a CurrentRowIndex as well as a CurrentCell property - you can
use either or both (currentCell has both a Row and Column Index) to grap the
value you want.

--
W.G. Ryan MVP Windows - Embedded

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/community/newsgroups
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top