Trent L. Taylor (06/12/2007)
If you will recall, we went over this in class in several different manners. Just use the CopyDataFrom method to use the data within the local instance versus a Fill method. SF comes with an advanced ListView sample that shows how to do this. Using this approach you only populate the BO on your form, use the CopyDataFrom method within the PopulationDataSourceSettings, and you will get the behavior you are looking for. This is what we do most of the time as well.Hi Trent;
Yes I do recall from the class but couldn't find anything that shows both listview and toolstrip working both direction. I even looked at chapter 18 to get a better feel for it, but if you look at chapter 18, you see the listview does not respond to toolstip and vice versa.
I think Greg hit it right on the nail. A simple toolstip, listview and a few textboxes connected to BO
a) if user navigate on toolstrip, the list view moves too.
b) if user moves the listview, then the toolstrip gets moved to.
Now here is the strange part. There is a sample called "Binding Business Source" which works with grid. I don't see any code that creates the sync between the grid and toolstrip. However, when I duplicated that on my form, the grid and toolstrip don't sync up. This has puzzled me.
In one post Ben Chase had mentioned that BBS will do this behavior and that was my original point with grid.
Your input is much appreciated!
..ßen