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

How to get cell content in gridview?

3 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
l k
Top achievements
Rank 1
l k asked on 13 Apr 2010, 01:16 PM
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?

3 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 13 Apr 2010, 01:52 PM
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.
0
mike okon
Top achievements
Rank 1
answered on 01 Dec 2013, 10:52 PM
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 .

mike
0
Dimitrina
Telerik team
answered on 02 Dec 2013, 09:33 AM
Hi,

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.


Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
Tags
GridView
Asked by
l k
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
mike okon
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or