DataGridView and sync other controls


Author
Message
Randy Jean
Randy Jean
StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)
Group: StrataFrame Users
Posts: 105, Visits: 641
Excuse me for being so dense, but I'm trying to create a simple form, 1 business object, businessbindingsource, datagridview and a multiline textbox for displaying text from the same bo that my datagridview is bound to. I populate my BO in the load of the form. Text in my corresponding textbox shows from first row, but when I "navigate" through my grid, textbox is not updated with data and I can't see evidence that the currentrowindex is even changing on the BO.



I've looked at the sample for businessbindingsource (can't run it now because I don't have access to the strataframe sample database offline and don't know how to get it without installing, which I don't want to do because I have copied newer dlls) - anyway, I set a breakpoint in my businessobject navigated method and also try updating a label to show the currentrowindex - it never fires as I move through my grid. For the life of me I can't seem to figure out how to simply refresh other controls bound to the same BO that my datagridview/businessbindingsource is bound to. I don't have a toolstrip or anything like that. I can't believe how many hours I've spent on this. Any help would be appreciated. Everything I'm reading/looking at makes it seem like this should just work the way I have it.









One more thing... Anybody know how to get my textbox to wrap on the carriage return (without line feed) and not show the little square box (which is the carriage return) without having to add line feeds?
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