how to select the specific cell

6 posts, 0 answers
  1. ALYOUSR
    ALYOUSR avatar
    3 posts
    Member since:
    Aug 2019

    Posted 20 Aug 2019 Link to this post

    i need when i add new row automatically the courser mouse go to the first column and first cell

     

  2. Dimitar
    Admin
    Dimitar avatar
    2892 posts

    Posted 21 Aug 2019 Link to this post

    Hello,

    You can use the UserAddedRow event for this:
    private void RadGridView1_UserAddedRow(object sender, GridViewRowEventArgs e)
    {
        radGridView1.CurrentColumn =radGridView1.Columns[0];
        radGridView1.CurrentRow = radGridView1.Rows[0];
    }

    I hope this helps. Should you have any other questions, do not hesitate to ask.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. ALYOUSR
    ALYOUSR avatar
    3 posts
    Member since:
    Aug 2019

    Posted 21 Aug 2019 in reply to Dimitar Link to this post

    thanks for your replay i test it but it's not working still please check the attached files

     

  4. Dimitar
    Admin
    Dimitar avatar
    2892 posts

    Posted 21 Aug 2019 Link to this post

    Hello,

    If you want to focus the new row you can use the following approach: 
    private void RadGridView1_UserAddedRow(object sender, GridViewRowEventArgs e)
    {
        radGridView1.CurrentColumn =radGridView1.Columns[0];
        radGridView1.CurrentRow = radGridView1.MasterView.TableAddNewRow;
    }

    Let me know how this works for you.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  5. ALYOUSR
    ALYOUSR avatar
    3 posts
    Member since:
    Aug 2019

    Posted 21 Aug 2019 in reply to Dimitar Link to this post

    thanks again but still not working see the attached file

     

  6. Dimitar
    Admin
    Dimitar avatar
    2892 posts

    Posted 21 Aug 2019 Link to this post

    Hi,

    This seems to work on my side (see attached video). I have attached my test project as well. Could you please check it and let me know what I need to change in order to reproduce the behavior on my side?

    I am looking forward to your reply.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top