This is a migrated thread and some comments may be shown as answers.

how to select the specific cell

5 Answers 103 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Wael Shazly
Top achievements
Rank 1
Wael Shazly asked on 20 Aug 2019, 03:06 PM

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

 

5 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 21 Aug 2019, 09:24 AM
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.
0
Wael Shazly
Top achievements
Rank 1
answered on 21 Aug 2019, 09:31 AM

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

 

0
Dimitar
Telerik team
answered on 21 Aug 2019, 10:19 AM
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.
0
Wael Shazly
Top achievements
Rank 1
answered on 21 Aug 2019, 10:27 AM
0
Dimitar
Telerik team
answered on 21 Aug 2019, 01:21 PM
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.
Tags
GridView
Asked by
Wael Shazly
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Wael Shazly
Top achievements
Rank 1
Share this question
or