How do you get the current row

3 posts, 1 answers
  1. madladuk
    madladuk avatar
    126 posts
    Member since:
    Dec 2009

    Posted 21 Jun 2010 Link to this post

    I have a button on a page that uploads a document, however I want to get the current "row" from the grid. The button is not in the grid, however an item would of been selected. If I use SelectedItem then this returns the binding but I have a combo box in the row that is not part of the binding and want to change its selection state. Can someone advise how this can be done.

    Thanks
    P{
  2. Answer
    Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 21 Jun 2010 Link to this post

    Hello madladuk,

     You can get the row like so:

    var selectedRow = this.radGridView1.ItemContainerGenerator.ContainerFromItem(this.radGridView1.SelectedItem);

    Regards,
    Yavor Georgiev
    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
  3. DevCraft banner
  4. madladuk
    madladuk avatar
    126 posts
    Member since:
    Dec 2009

    Posted 21 Jun 2010 Link to this post

    Many thanks that done the trick. :-)
Back to Top