dcsimg
Results 1 to 2 of 2

Thread: when select quantity cell or change it Focus on cell ItemCode on nextrow datagridview

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2018
    Posts
    14

    when select quantity cell or change it Focus on cell ItemCode on nextrow datagridview

    Problem

    How to focus on cell ItemCode on next row when Change Quantity on current Row ?

    Details

    I have datagrid view have data as following

    Code:
    ItemCode     Name     Quantity    Price
    
    0101     book       1          10    selectedrow
    
    New Row
    After I Reading items By Barcode it add New Row so that some items need to change quantity for it

    so that i need after change quantity from 1 to 4 as example go to cell Code in New Row or Last Row without using mouse

    to be ready to receive new barcode reading .

    enter key on mydatagridview send tab so that i need any thing work around or any solution when cell quantity in current row

    changed or selected go to new row cell 1

    can i do task above without depend on enter key or tab key ?

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    99,788

    Re: when select quantity cell or change it Focus on cell ItemCode on nextrow datagrid

    To focus a specific cell you assign it to the CurrentCell property. You can get that cell by whatever means is appropriate, e.g. column and row indexes. You would do that in the handler for the appropriate event, e.g. CellValueChanged.
    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

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
  •  



Featured


Click Here to Expand Forum to Full Width