views:

117

answers:

1

To improve performance/scalability of a WinForms app, I would like to defer calculation of fields that are not visible in the grid until they are needed.

Looking for ideas on how this can be done in .NET 2.0.

One idea inspired by this post is to attach a DataSource object that supports ITypedList. However ITypedList interface seems awkward for this use as it provides a column rather than row view of the data.

Cheers

+1  A: 

It sounds like virtual mode would do the job...

However, almost all grid code is oriented around a list (not a matrix) - it is therefore likely that you will need to provide an entire row at a time.

I'm not sure that ITypedList would achieve a lot in this scenario; this is just a custom way to provide metadata - but ultimately, the overall list behavior is comparable to IList with custom PropertyDescriptors.

Marc Gravell