Std Data grid view and SF Toolstrip don't communicate with each other!


Std Data grid view and SF Toolstrip don't communicate with each other!...
Author
Message
Ben Hayat
Ben Hayat
Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
I mentioned this as part of another post, but I thought to make it as a post of it's own.



I see a consistent problem trying to have data grid and SF navigation toolstrip to work with each other. The toolstrip does move the record pointer and I can see data in text box change, but the pointer in the grid does not change. The same problem exists vice versa. If I move the pointer in the grid, the data in the text box does not change.



Note: I actually had the same problem using ListView and I thought ListView is less capable than Std Grid View, so I changed to Grid view, but the same problem still continues.

I also looked at the sample (Business Binding Source) and the grid and toolstrip work together. And I can't find what else needs to be set.



My setup:

BO,

BBS

Data Grid view



Thanks!

..ßen
Reply
Ben Hayat
Ben Hayat
Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Ben Hayat - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Ben Hayat - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Ben Hayat - 18 Years Ago
Greg McGuffey - 18 Years Ago
                 Trent posted faster than I did! :D
Greg McGuffey - 18 Years Ago
Ben Hayat - 18 Years Ago
                 Greg;

[quote]Synching ListView to CurrentRow
Just...
Ben Hayat - 18 Years Ago
Greg McGuffey - 18 Years Ago
                         Greg, my original question was really aimed at BBS and grid and got...
Ben Hayat - 18 Years Ago
                             OK, so you are saying that when you use the BBS with a grid view and...
Greg McGuffey - 18 Years Ago
                                 [quote][b]Greg McGuffey (06/12/2007)[/b][hr]OK, so you are saying that...
Ben Hayat - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search