What I need to do is to capture the data before being loaded in the dgv and change one of the properties. What I have now is a generic method which I'm using to create the DataSource
for my dgv:
dgv.DataSource = new SortableBindingList<T>(result.ResultEntities);
And what I want to do is to get this data, manipulate it the way I need and then return the changed data for loading in the dgv
.
I tried to accomplish this by simply doing this:
SortableBindingList<MyType> someVar = (SortableBindingList<MyType>)dgvMydgv.DataSource;
well, it seems it's not the way to do this.