Problem to set a value in a new row cell

2 posts, 0 answers
  1. Iosu Buenetxea
    Iosu Buenetxea avatar
    91 posts
    Member since:
    Jan 2008

    Posted 22 Mar 2010 Link to this post

    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?


  2. Nedyalko Nikolov
    Nedyalko Nikolov avatar
    871 posts

    Posted 25 Mar 2010 Link to this post

    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)?

    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.
Back to Top