• Notice regarding image hosts and attachments. See here.

VB.Net - Databinding help

~J~

~J~

Soldato
Joined
20 Oct 2003
Posts
7,558
Location
London
Currently got a combo box, databound to a dataset.

In my code however, I want to be able to have something like...

Me.ComboBox.UID=5

Where UID is a public event that looks through the dataset the control is bound to until it comes to a number 5 in a uid column, and then just updates the combo box with what is in row 5.

Any ideas?
 
Well yes you're right, if it was a large table, but it's simply a collection of VAT types from a pre-populated dataset which holds about 10 records, so hardly any strain at all really.

One thing that would make it a lot easier for me to use as well (it's a custom control), is to add a databinding to the control itself.

By this I mean if you create a custom control, and place it on your form and look at the databinding properties, it only shows "Advanced" and "Tag". Is there any way to add a new parameter to that range?
 
Back
Top Bottom