You must Sign In to post a response.
  • Category: .NET

    Data grid view in c#

    hi all,
    i m using keydown event of data grid view for send data int text box by pressing enter key this code is successful but after pressing enter key on row foces goes to next row and display data in text box of on which we press enter key
    i want foces of that row does not get changed


    thanks,
  • #505680
    Hi
    I didn't understand clearly but
    Plz check

    http://www.windows-tech.info/3/42c8782f6ad670ba.php

    Or

    http://www.windows-tech.info/18/ddfb99bc0285f58f.php

    Always be a first-rate version of yourself, instead of a second-rate version of somebody else.

  • #505683
    use Cell Enter Event.

  • #505727
    just try at key-up event and after pressing enter
    at cell_enter event decreas rowindex as rowindex -1

  • #508425
    Change the datagridview1.editmode property to EditProgrammaticaly


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.