Location of previous focus row/column

S

Sam

Hi all

Is there an easy way to find the previous Cell or Row that user just left on
DataGrid Control or Table. For example, if I'm currently on Row 1 Column 2
and then I click on Row 3 Column 5. Is it possible to know the previous
location of my focus? What I'm trying to do is that if user changed content
of a row, I want to update my variables to reflect that.

Thanks in advance

Sam
 
K

Ken Tucker [MVP]

Hi,

See the cell validating sample

http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp#q773q

Ken
------------------------
Hi all

Is there an easy way to find the previous Cell or Row that user just left on
DataGrid Control or Table. For example, if I'm currently on Row 1 Column 2
and then I click on Row 3 Column 5. Is it possible to know the previous
location of my focus? What I'm trying to do is that if user changed content
of a row, I want to update my variables to reflect that.

Thanks in advance

Sam
 

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

Top