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

Problem to set a value in a new row cell

1 Answer 54 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Iosu Buenetxea
Top achievements
Rank 1
Iosu Buenetxea asked on 22 Mar 2010, 06:20 PM

Hi all,

I don't know how to set a value (or a default value) on first cell and set the focus on second cell when i insert a new row.

I've tried with CurrentCell property with no results.

Any idea?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 25 Mar 2010, 06:54 PM
Hello JUAN CRESPO,

You can use RadGridView.AddingNewDataItem event to provide whatever object you want to enter in the grid.

Indeed RadGridView.CurrentCell is a read only property. We'll try to introduce some improvements related to this case, such as CurrentColumn which with combination with CurrentItem will give you a CurrentCell, for the upcoming Q1 2010 service pack. Meanwhile there is an option you can use with an ObservableCollection as a data source. I'm attaching a sample project for a reference.

If this doesn't help, please provide me with more info about your scenario (type of the data source to which RadGridView is bound and any information you can find useful)?

Greetings,
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
Iosu Buenetxea
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or