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

Bound Grid and Unbound Columns

1 Answer 43 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Curtis
Top achievements
Rank 1
Veteran
Curtis asked on 11 Jun 2018, 09:47 PM

I realize this topic has been covered several times - So I hope I'm not spamming the wrong location.

 

In another thread of a similar topic, the question was "How do I populate my unbound cells when using a bound grid where my unbound cell is based on data found in one or more bound cells?"  The answer was simple and expected:  Loop thru all of your rows and set the cells.

 

Is there a way to do this with a little more elegance?  A way to populate these unbound cells WHILE the binding is occurring?

The reason I ask is also simple:  I have millions of rows.  Having to loop thru a 2nd time to populate a single, unbound column takes a considerable amount of time and since getting the binding to complete already takes a fairly long period, I was hoping to not have to do the whole loop thing...might as well update the unbound column as the rows are being created right?

 

Anyway if this is possible, I'd appreciate being pointing in the correct direction!

-C

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 12 Jun 2018, 08:46 AM
Hello, Curtis,  

By design, RadGridView offers the DataBindingComplete event which is fired after data binding operation has finished. However, it is necessary to iterate the Rows collection and populate the unbound cells accordingly.

According to the provided information, it seems that you have to deal with a great amount of rows. That is why I would highly recommend you to use our RadVirtualGrid. It is a grid component developed on top of Telerik Presentation Framework which provides a convenient way to implement your own data management operations and optimizes the performance when interacting with large amounts of data. Additional information is available in the online documentation: https://docs.telerik.com/devtools/winforms/virtualgrid/overview

I hope this information helps. If you have any additional questions, please let me know. 

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Curtis
Top achievements
Rank 1
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or