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 (548 reputation)Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
Greg, my original question was really aimed at BBS and grid and got side tracked to Listview.



There is a sample called BusinessBindingSource which does exactly what I need to do.

You drop a BO on a form.

you drop BBS on the form and connect it to BO

You then put a grid on the form and connect it's data source to BBS.



On the sample it works and when I do this on my form, I see the data in grid but has no two way binding. I've looked every single property and don't see why. The sample has no code to force the two way binding.



Could someone point me to right direction.



Thanks!

..ßen
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
OK, so you are saying that when you use the BBS with a grid view and navigate the BO using some method (toolstrip or links) that the grid doesn't navigate?



I'd check out the properties of the grid. Maybe there is property that indicates the grid selection should change when the datatable current row changes and it's turned off???



I don't know much about ADO.NET, but I do know that BOs just wrap a datatable, and the BBS is bound via that datatable, so the grid changing selected rows is very likely just a .NET thing, not related to SF at all....just a guess.



Good luck!
Ben Hayat
Ben Hayat
Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)Advanced StrataFrame User (548 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
Greg McGuffey (06/12/2007)
OK, so you are saying that when you use the BBS with a grid view and navigate the BO using some method (toolstrip or links) that the grid doesn't navigate?



I'd check out the properties of the grid. Maybe there is property that indicates the grid selection should change when the datatable current row changes and it's turned off???



I don't know much about ADO.NET, but I do know that BOs just wrap a datatable, and the BBS is bound via that datatable, so the grid changing selected rows is very likely just a .NET thing, not related to SF at all....just a guess.



Good luck!




Greg, check out my other post. Just found the problem!

..ßen
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search