New Posts New Posts RSS Feed: Data not showing in bound controls
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Data not showing in bound controls

 Post Reply Post Reply
jlk View Drop Down

Joined: 15-Jun-2009
Posts: 1
Post Options Post Options   Quote jlk Quote  Post ReplyReply Direct Link To This Post Topic: Data not showing in bound controls
    Posted: 15-Jun-2009 at 3:03pm
Despite numerous atttempts I can't get a controlbindingManager to display my data values in bound textboxes.
I can display parent/child rows from linked tables in an ultragrid, populate comboboxes and listboxes from code using another CBM. I can save changes, add new items to my ultragrid, create new datarows, etc.  Everything works wonderfully except I can't show individual data in simple controls.
Mulitple attempts using the most simple of scenarios has not worked. Using only one entity, without any relationships I can bind all the properties to a grid using an ultragridBM and display them but the same simple controls do not display the properties using the CBM. If I chain to a bindingnavigator the navigator indicates the number of Items in the entity correctly, cycles as required the rows in the grid, but still nothing appears in the textboxes!
I'm sure there is something very simple I am overlooking but I don't know what. I've saved, rebuilt, closed, and even created whole new solutions from scratch, including creating the model and still no luck. I've used widows textboxes and all versions of my UG components and no luck. I even checked to make sure the fore and back colors were not the same in the textboxes.
Any suggestions?
Flabergasted in Cleveland
I'm using version DevForce, SQL 2005, Infragistics NetAdvantage 8.2, VB in .Net 2008 with a Vista Home Premium OS.
Back to Top
kimj View Drop Down

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 20-Jun-2009 at 6:44pm
Dear Flabbergasted in Cleveland,
My guess is that the BindingSource property on the ControlBindingManager isn't set, or else the DataSource property on the BindingSource.   Two easy things to overlook.  If you still have questions, take a look at the "Populating a WinForm" learning unit in the "100 Fundamentals" series - it shows how to set up a ControlBindingManager.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down