J
Jeff Jarrell
I am working with Winforms and writing some general purpose helpers for use
with a 3rd party grid (devexpress).
I have been using BindingList<T> to bind to the grid. At some point I need
to get the object stored at the Nth index of the list.
The intent is something like the following...
BindingList<Object> list
list = (BindingList<Object>) gridview.DataSource
Object row = list[5]
The casts don't work because they are BindingList<ConcreteType>. I don't
know how to make the < ... > part dynamic. And no, I can't use DataSets.
Suggestions?
jeff
with a 3rd party grid (devexpress).
I have been using BindingList<T> to bind to the grid. At some point I need
to get the object stored at the Nth index of the list.
The intent is something like the following...
BindingList<Object> list
list = (BindingList<Object>) gridview.DataSource
Object row = list[5]
The casts don't work because they are BindingList<ConcreteType>. I don't
know how to make the < ... > part dynamic. And no, I can't use DataSets.
Suggestions?
jeff