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

get the value of a cell

2 Answers 138 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Luis Tirado
Top achievements
Rank 1
Luis Tirado asked on 08 Apr 2010, 01:56 AM
how can i get the value of a cell, in Winform:

radGridView1.Rows[e.RowIndex].Cells[5].Value.ToString();

in WPF, i cant
. THX














2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 08 Apr 2010, 06:39 AM
Hello,

You can't do this since the WPF (and Silverlight) grid is virtualized using container recycling and cell value depends on the current grid horizontal and vertical scroll. If you post more info about your scenario I'll gladly help you.

All the best,
Vlad
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
phuoc tran ngoc
Top achievements
Rank 1
answered on 05 Oct 2012, 04:41 AM
Hi Vlad

I have the same problem with Luis Tirado
My scenario is a gridview and textbox.
When I click a row in gridview i want the textbox show the value of that row (column 1)
 I try this: 
textbox1.text=gridview1.selectedRow.column[1].tostring();
but it didtn work
So how can i do?

Thanks
Tags
GridView
Asked by
Luis Tirado
Top achievements
Rank 1
Answers by
Vlad
Telerik team
phuoc tran ngoc
Top achievements
Rank 1
Share this question
or