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

Cell value is empty in virtual mode grid

4 Answers 126 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fabian Raul Jofre
Top achievements
Rank 2
Fabian Raul Jofre asked on 11 Mar 2010, 04:21 PM

Hi, I'm having a problem after upgrading from version 2009 Q3 SP1 to 2010. I´ve run and debbuged your "performance" example and the problem is there too, so I assume that there is a bug in the new version. 
The problem arises when I try to get the value (doing this radgridview1.Rows[0].Cells[0].Value) of any cell of the grid, I always get an empty string but it is shown correctly in the screen. It is worth mentioning that i'm using GridViewColumnTexts in my grid.

Tell me if you need more info. Hope to hear about you soon. Regards

4 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 12 Mar 2010, 10:52 AM
Hello Fabian Raul Jofre,

Yes, I confirm the issue and I updated your Telerik points for this report. We will address it in our upcoming service pack. You should use CellElement property to work around the problem. Here is the code:

((GridDataCellElement)this.radGridView1.Rows[2].Cells[2].CellElement).Value;

However, it will work only for cells that are currently visible.

All the best,

Jack
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
Fabian Raul Jofre
Top achievements
Rank 2
answered on 12 Mar 2010, 02:55 PM

Thank you very much for the suggestion and the points. I've just tried your solution and it works fine in my application, luckily I don´t need to access any non visible cell.

Regards

0
gilmar
Top achievements
Rank 1
answered on 12 Mar 2010, 07:36 PM
Hello,

I have the same problem.
I was debuging the cellvalueneed event and this is never called for the columns with isvisible=false.

thanks

0
Jack
Telerik team
answered on 15 Mar 2010, 10:04 AM
Hi gilmar,

This issue will be addressed in our upcoming service pack. Does the proposed work around work for you? If not, please send me your application. I will try to find a proper solution.

I am looking forward to your reply.

Regards,
Jack
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.
Tags
GridView
Asked by
Fabian Raul Jofre
Top achievements
Rank 2
Answers by
Jack
Telerik team
Fabian Raul Jofre
Top achievements
Rank 2
gilmar
Top achievements
Rank 1
Share this question
or