Results 1 to 2 of 2

Thread: Retrieve RowIndex on KeyDown event....

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2008
    Posts
    60

    Angry Retrieve RowIndex on KeyDown event....

    Hi Guys,


    Please provide code snippet to retrieve rowIndex of Datagridview on keydown OR keyUp event of Datagridview in C#...

    Thnks & BRgds
    V'jay

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Retrieve RowIndex on KeyDown event....

    You always have access to the CurrentCell, CurrentRow and CurrentCellAddress properties of the grid no matter what.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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