Results 1 to 18 of 18

Thread: Send Mouse Click to Row that is highlighted with Arrow Key Down/Up

Threaded View

  1. #7

    Thread Starter
    New Member
    Join Date
    Apr 2016
    Posts
    11

    Re: Send Mouse Click to Row that is highlighted with Arrow Key Down/Up

    Quote Originally Posted by wes4dbt View Post
    I didn't read this completely, I thought WrrtyEnddate was a class he had written. So, jmc is write. This code has nothing to do with your datagridview. So it's hard to understand what your trying to do.
    • OK. Let’s put some perspective on this.
    • The end result is that I get the number of days from two dates. That’s it!
    • The code I showed you takes two date, converts them and shows the number of days between the two dates.

    This is working just fine.

    Let’s put this into context:

    1. When I use the Up/Down Arrows on my keyboard and each row is highlighted it fills each textbox with their corresponding values.
    2. The code executes when I click on the Highlighted row.
    3. I placed a label on the form that has nothing to do with the Datagridview or Datasource that will display the results of the executed code.


    What I ask in my posting is the following:

    1. Can my code be executed when the row is highlighted?
    2. I do not only want to use the DataGridView cell click event to execute my code, I also want it executed when the row is highlighted .


    Also, would there be a better way of coding to get the number of days from tow dates?


    Name:  Updated_Image.jpg
Views: 1463
Size:  57.0 KB

    Thank you.
    Last edited by lmalave; May 5th, 2016 at 12:16 PM. Reason: Update Image

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width