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

Move To New Row

1 Answer 15 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Omid
Top achievements
Rank 1
Omid asked on 28 Jun 2014, 10:23 AM
Hi,
after press enter key in last column of a new row then focus move to next row. but i want to move on new row.
please help me.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 30 Jun 2014, 11:10 AM
Hello Omid,

Thank you for writing.

The easiest way to do that is to use the UserAddedRow event, which gets triggered every time a user adds a row via the UI:
void radGridView1_UserAddedRow(object sender, GridViewRowEventArgs e)
{
    radGridView1.MasterView.TableAddNewRow.IsCurrent = true;
    //if needed you can also set the current column
    //radGridView1.CurrentColumn = radGridView1.Columns[0];
}

I hope this helps.

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Omid
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or