We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

User Control Binding Problem

Thread ID:




4202 May 2,2003 02:26 PM UTC WinForms 0
Tags: FAQ
Administrator [Syncfusion]
Asked On May 2, 2003 02:26 PM UTC

i have a user control that the only thing that has is a listbox inside. and properties that i have create to make a bridge to the listbox for the datasource,selectedvalue,displaymember, valuemember. my properties link directly to the listbox properties like this: [Category("Data"), Description("Indicates the property to display for the items in this control")] [Editor "System.Windows.Forms.Design.DataMemberFieldEditor, System.Design",typeof(System.Drawing.Design.UITypeEditor))] public string DisplayMember { get { return lb.DisplayMember; } set { lb.DisplayMember = value; } } then i databind to my property SelectedValue. when the control loads i read all the bindings from my property and move them to the listbox property, this only works for the first row of the dataset if you star navigating is like the binding never existed, can anyone help. or know whats going on?


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon