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

Change Insertion method

1 Answer 44 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Wasif Jahangir
Top achievements
Rank 1
Wasif Jahangir asked on 06 Jun 2010, 06:38 AM
By Default we need to hit Insert Key to add a new record to RadGridView. how can i change this behavior to Default WPF Grid i.e. just upon hitting tab on last record a new record will be inserted.

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 09 Jun 2010, 11:24 PM
Hello Wasif Jahangir,

RadGridView doesn't support this scenario out of the box, but it can be easily achieved with a few lines of code.
You can handle KeyDown event and call RadGridView.BeginInsert() when TAB key is pressed. The idea is that RadGridView doesn't handle TAB key down event when TAB is pressed on the last cell. I'm attaching a sample application that demonstrates this approach.

Regards,
Nedyalko Nikolov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Wasif Jahangir
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or