Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
GeneralRe: memcmp in C# Pin
Werdna30-Jun-04 6:47
Werdna30-Jun-04 6:47 
GeneralRe: memcmp in C# Pin
BrcKcc30-Jun-04 7:02
BrcKcc30-Jun-04 7:02 
QuestionWhats an RVA ? Pin
Peter Vertes29-Jun-04 8:27
Peter Vertes29-Jun-04 8:27 
AnswerRe: Whats an RVA ? Pin
Peter Vertes29-Jun-04 8:33
Peter Vertes29-Jun-04 8:33 
AnswerRe: Whats an RVA ? Pin
Heath Stewart29-Jun-04 9:49
protectorHeath Stewart29-Jun-04 9:49 
GeneralRe: Whats an RVA ? Pin
Peter Vertes29-Jun-04 10:28
Peter Vertes29-Jun-04 10:28 
GeneralTwo problems with MDI Pin
Metzler29-Jun-04 7:11
Metzler29-Jun-04 7:11 
GeneralUsing DataBinding with a user control Pin
Brett Slaski29-Jun-04 6:39
Brett Slaski29-Jun-04 6:39 
I created a user control which contains a combobox for table lookups. It basically sets up a DataAdapter and DataSet and binds it to the combobox. For access to the SelectedValue from forms that will use the control I added:

public object selectedValue<br />
{<br />
    get { return this.combo.SelectedValue; }<br />
    set { this.combo.SelectedValue = value; }<br />
}

The problem that I am having is when I add the user control to form and use simple binding on the property selectedValue, the value isn't updated. It will update if I set it directly. See below.

Works (from a new form)

this.comboSelector.selectedValue = 100;
// The comboSelector will update with the corrisponding data.

Not Working (from a new form)

this.comboSelector.DataBindings.Add(new System.Windows.Binding("selectedValue", dataSet, "table.column"));
I also tried:

this.comboSelector.DataBindings.Add("selectedValue", dataSet, "table.column"));

When the Currency Manager's postion is chaged these values are not updated. What am I missing? Thanks in advance.


Brett Slaski
GeneralLDAP Active directory Pin
robmays29-Jun-04 4:11
robmays29-Jun-04 4:11 
GeneralRe: LDAP Active directory Pin
Heath Stewart29-Jun-04 5:37
protectorHeath Stewart29-Jun-04 5:37 
GeneralRe: LDAP Active directory Pin
robmays2-Jul-04 21:48
robmays2-Jul-04 21:48 
GeneralDataset Filter Interger Pin
Antonius_r329-Jun-04 4:11
Antonius_r329-Jun-04 4:11 
GeneralRe: Dataset Filter Interger Pin
Dave Kreskowiak29-Jun-04 5:04
mveDave Kreskowiak29-Jun-04 5:04 
GeneralRe: Dataset Filter Interger Pin
Antonius_r329-Jun-04 5:47
Antonius_r329-Jun-04 5:47 
GeneralRe: Dataset Filter Interger Pin
Antonius_r329-Jun-04 18:08
Antonius_r329-Jun-04 18:08 
GeneralRe: Dataset Filter Interger Pin
Orina DCosta29-Jun-04 20:20
Orina DCosta29-Jun-04 20:20 
GeneralRe: Dataset Filter Interger Pin
Antonius_r330-Jun-04 2:55
Antonius_r330-Jun-04 2:55 
GeneralRe: Dataset Filter Interger Pin
Antonius_r33-Jul-04 5:04
Antonius_r33-Jul-04 5:04 
GeneralRe: Dataset Filter Interger Pin
mikasa12-Jul-04 5:59
mikasa12-Jul-04 5:59 
GeneralSerializing, add new member var problem. Pin
Steve Schaneville29-Jun-04 3:28
professionalSteve Schaneville29-Jun-04 3:28 
GeneralRe: Serializing, add new member var problem. Pin
turbochimp29-Jun-04 4:45
turbochimp29-Jun-04 4:45 
GeneralRe: Serializing, add new member var problem. Pin
Steve Schaneville6-Jul-04 2:59
professionalSteve Schaneville6-Jul-04 2:59 
GeneralRe: Serializing, add new member var problem. Pin
Heath Stewart29-Jun-04 6:30
protectorHeath Stewart29-Jun-04 6:30 
GeneralRe: Serializing, add new member var problem. Pin
Steve Schaneville6-Jul-04 3:01
professionalSteve Schaneville6-Jul-04 3:01 
GeneralTrackbar with multiple scrollers Pin
fp1229-Jun-04 3:07
fp1229-Jun-04 3:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.