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

Set text to a specific cell

2 Answers 127 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hugo
Top achievements
Rank 1
Hugo asked on 27 Sep 2011, 12:52 AM
Hi, I need to set my own text to the current cell.  I tried with this instruction:

RadGridView1.CurrentCell.Value = "sometext";

But the cell remains empty.  Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Hugo
Top achievements
Rank 1
answered on 29 Sep 2011, 04:27 PM
Someone can help me?
0
Maya
Telerik team
answered on 30 Sep 2011, 08:19 AM
Hi Hugo,

The recommended approach is to work directly with the underlying data item, not with the properties of a visual element - GridViewCell in your case. What you can do is to get the item you want and change the value of the corresponding property.

 

Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Hugo
Top achievements
Rank 1
Answers by
Hugo
Top achievements
Rank 1
Maya
Telerik team
Share this question
or