How to get cell content in gridview?

4 posts, 0 answers
  1. l k
    l k avatar
    4 posts
    Member since:
    Jan 2010

    Posted 13 Apr 2010 Link to this post

    Hi, i need to update some of my cell in radgridview, previously i used GetCellContent in silverlight, but i can't find function like this in telerik? Is there any substitution?
  2. Pavel Pavlov
    Pavel Pavlov avatar
    2039 posts

    Posted 13 Apr 2010 Link to this post

    Hi l k,

    GetCellContent was functionally replaced by the CreateCellElement  method. Can you please elaborate a bit more and share your scenario. I believe we can thing of some workaround.

    All the best,
    Pavel Pavlov
    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. mike okon
    mike okon avatar
    40 posts
    Member since:
    Dec 2009

    Posted 01 Dec 2013 Link to this post

    I am trying to retrieve a value of a cell in order to pass to a child window and believe this would have worked.

    my scenario is such.

    In my grid I have loaded details of an entity, each row is unique due to a  PK int. I do not show this Int in the grid view. However I need to pass the Int to a child window .  How can I pass this cell value of the selected row onto the child window.

    I have seen it mentioned in other posts where using the datacontext is suggested however no code is given to show how to specify the Int from the collection and pass to the child window? I am using the button click event .

  5. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 02 Dec 2013 Link to this post


    Due to the UI Virtualization only the cells that are displayed into view will be actually created and displayed with RadGridView.

    You are right that you should work with the DataContext of the row, i.e. the bound data item.

    For example, you can get the Item like so:
    BusisnessObject myBusisnessObject = row.Item as BusisnessObject; 

    Then you can work with it, access its PK and all the properties you need.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top