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

GridViewRowInfo VisualElement

3 Answers 125 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 09 Jul 2011, 10:57 PM
I am new to Telerik so please forgive the beginner question. I have searched the forums for a possible answer but haven't found anything that specifically answers my question.

I am upgrading the Telerik RadControls for Winforms from Q1 2010 SP2 to Q2 2010. There were obviously some things that broke in the code and I think I have fixed them all, but I cannot seem to find a solution for one. The error is the following:

Telerik.WinControls.UI.GridViewRowInfo does not contain a definition for VisualElement and no extension method...blah...

The line of code looks like this:
if (row.Cells["Status"].Value.Equals("complete"))
    row.VisualElement.ForeColor = Color.Gray;

How do I address this? What changed between Q1 2010 SP2 and Q2 2010?

Thank you in Advance for any insight. It is greatly appreciated.

Scott

3 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 10 Jul 2011, 11:47 AM
Hello Scott,

Thank you for your question.

The reason for which we removed the VisualElement property from the data row object and the possible ways overcome this breaking change are described in the following blog article:
Explained: RadGridView for WinForms virtualization and its implications. The case with CellElement and RowElement 

I hope this helps.

Best wishes,
Nikolay
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Scott
Top achievements
Rank 1
answered on 10 Jul 2011, 02:01 PM
Hi Nikolay,

Thank you for the response. The information is helpful and will allow me to fix.

Thanks,

Scott
0
Nikolay
Telerik team
answered on 11 Jul 2011, 09:30 AM
Hi Scott,

I am glad to hear that you find my response helpful. Feel free to write back if you have additional questions.

Kind regards,
Nikolay
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
Scott
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Scott
Top achievements
Rank 1
Share this question
or