Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Databinding with a NumericUpDown control

Status
Not open for further replies.

avarga82

Programmer
May 19, 2003
62
US
...any ideas how to make this work? It just won't work! Google isn't being much of a help either.

Here's my code. Any help would be appreciated.

me.nmMileage.DataBindings.Add("Value", Me.m_DataTable, "Mileage")

Thanks!
 
I've never tried it. What does it do? Were you sure to set the minimum and maximum values within the range of your database, as well as the scale?
 
You say "It just won't work!".

What doesn't work?
Does VS mark your code as wrong?
Do you get a compile-time error?
Do you get a run-time error?
 
Sorry for not being specific.

It acts like an unbound control. The values don't change, and oddly, if I add a databinding, no other control will update as I navigate through a recordset either. As soon as I take the databindings off the numeric updown's, everything works fine.

Yes, the range is ok for the values in the db. It's really weird.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top