I have an entity, "IFProductProtocol" which has the following attributes:
ID (PK)
Name
OrderIndex // this is used to specify the order in which the data should be processed
I have the collection bound to a DataGridVew and I want to reorder them via drag and drop in the DGV. I've read that in order to change the order of items in a DataBound DGV, you need to change the order in the underlying data source (makes sense). I've looked over the esCollection methods and don't see anything for InsertAt(), RemoveAt(), etc.
I'm really not sure how to approach this...
One idea I had is when a user drags and drops a DatagridRow to call a method that would go through the collection and manually update the OrderIndex property for the effected entities, then sort the collection on OrderIndex. I think this will do the trick.
If anyone has any other ideas I would love to hear them.
Thanks,
Steve