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

The gridview is not calculating the calculated columns that are not in the grid visible area

2 Answers 63 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Phani Potturu
Top achievements
Rank 1
Phani Potturu asked on 03 Dec 2010, 04:31 PM

In a GridView with 30 plus columns, I am adding few unbound (calculated) columns with expressions. The Expressions refer the other columns in the grid.

The problem is, after initial data load the calculated columns at are at the right end of the grid which are not in the visible area are not being calculated.  The gridview is not calculating the calculated columns that are not in the grid visible area. These columns show up data as soon as I scroll back and forth brining these columns into visible area.

 

How can make sure the calculated columns are always show data, regardless of their visible position in the grid area.

2 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 04 Dec 2010, 11:00 AM
Hello,

This sounds like an interesting case, i would like to ask you for a sample project (you can just copy paste a very basic form) here and i will try to offer a suggestion.

But i could suggest a way that should work, when you first load the grid set the widths of all the columns to 2,3 let's say, after that call a best fit on the columns, then because of that very small width all the columns should be calculated and the best fit will cause the columns to resize properly.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
Telerik WinForms MVP
0
Julian Benkov
Telerik team
answered on 08 Dec 2010, 03:24 PM
Hi Phani,

Just like Emanuel said, this sounds like a very interesting case. Please open a new support ticket and send us a sample application which we can investigate locally.

Thank you for your cooperation.

Greetings,

Julian Benkov
the Telerik team

 

Get started with RadControls for WinForms with numerous videos and detailed documentation.
Tags
GridView
Asked by
Phani Potturu
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Julian Benkov
Telerik team
Share this question
or