Questions tagged [data-binding]

A general technique that binds two data/information sources together and maintains them in sync.

Data binding is a general technique that binds two data/information sources together and maintains them in sync. This is usually done with two data/information sources with different types as in data binding. However, in UI data binding, data and information objects of the same type are bound together (e.g. objects to Java UI elements).

If the binding has been made in the proper manner, then, each data change is reflected automatically by the elements that are bound to the data. The term data binding is also used in case where an outer representation of data in an element changes, and the underlying data is automatically updated to reflect this change. As an example, a change in a TextBox element could modify the underlying data value.

Ref:

WPF DataBinding: Windows Presentation Foundation () data binding provides a simple and consistent way for applications to present and interact with data. Elements can be bound to data from a variety of data sources in the form of common language runtime () objects and XML.

23688 questions
6
votes
6 answers

DataMember property [ObjectName] cannot be found on the DataSource

I have a business object, which is a composite of child objects. I am using databinding in Visual Studio 2008 to bind to controls on a Windows form. But I am getting the above error in the InitializeComponent method of the form. Lets say I have an…
ptutt
  • 1,338
  • 3
  • 18
  • 35
6
votes
1 answer

How to get item value in v-slot:cell() template of b-table - BootstrapVue

I'm a very new at programming. I'm trying to figure it out how to bind the data to get the link :href work using store, vuex and bootstrap-vue table. I have spent 4 days for this, and now I'm dying. Please help. books.js(store, vuex) books: [ { …
Chawchawchaw
  • 203
  • 1
  • 4
  • 13
6
votes
1 answer

Value produced by BindingExpression is not valid for target

System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='' BindingExpression:Path=Attributes[AssetSL]; DataItem='DataBinding' (HashCode=4074007); target element is 'RegionSSIn'…
Erez
  • 6,405
  • 14
  • 70
  • 124
6
votes
3 answers

Bind to a parent/sibling of current datacontext/source property in WPF

How do we bind to a parent/sibling of a current datacontext (i.e. the source property representing the current datacontext)? I am not talking about binding to the parent control's property (that case involves parent of target and not of source) -…
publicgk
  • 3,170
  • 1
  • 26
  • 45
6
votes
1 answer

Android two-way databinding Float to EditText

I am trying to use two-way databinding on a EditText. String values are working fine but I can't get it working for Float values. I have tried to use a binding adapter that I found in this answer with no luck: Android DataBinding float to…
6
votes
2 answers

How can a WPF binding distinguish between an indexer property and a list element?

I have a binding of the form: Path=SpecialCollection[0] The SpecialCollection class extends ObservableCollection and has an indexer property. public T this[string propertyValue] { get { // do stuff return default(T); …
Craig
  • 1,890
  • 1
  • 26
  • 44
6
votes
2 answers

How to access to nested view using data binding and navigation component?

I'm using android data binding and navigation component. I have activity_member layout. This layout includes another layout:
Amirhosein
  • 4,266
  • 4
  • 22
  • 35
6
votes
2 answers

Android kotlin data-binding with fragments error:cannot find symbol import com.example.***.databinding.FragmentUserBindingImpl;

I am relatively new to kotlin and trying to build a project with data binding in some fragments.I have a fragment named UserFragment with a Recyclerview in it like this: class UserFragment : Fragment() { private lateinit var binding:…
user3770803
  • 145
  • 1
  • 9
6
votes
3 answers

ASP.NET page events - Button click event comes after GridView bind

My understanding of the order of page events is this: Page : Load Control : DataBind (for a GridView or whatever) Control : Load Control : Clicked (for a Button) Page: PreRender Control : PreRender (There are lots of others - but these are the…
TallGuy
  • 1,873
  • 6
  • 22
  • 35
6
votes
2 answers

WPF - UI not updating from Command

I have a problem with my UI not updating while executing a Command. I've got an indeterminate ProgressBar which has it's visibility bound to the IsBusyIndicator-property in the ViewModel. A Command should now excecute a method and show the…
BenJey
  • 127
  • 9
6
votes
2 answers

Pass values to child component Angular 7

I went though this, and understand that after declaring a data-bound input property, Angular should automatically update the input value. In the component I created, it doesn't seems like that. When I click on a item on the grid on the parent it…
6
votes
2 answers

Numbers displaying backwards?

I didn't believe it when I read the user's complaint...typing .123 in a bound WPF textbox displays .321! It's fixed for now, but I wonder if this can be classified as a WPF bug? The problem occurs when the text box is bound to an Entity Framework…
DeveloperDan
  • 4,626
  • 9
  • 40
  • 65
6
votes
1 answer

ReactiveUI 9: binding lists to a WPF view

In ReactiveUI 9, ReactiveList has been deprecated in favor of DynamicData (Blog post). I am currently in the process of trying to update my code to use SourceList. I was able to get the ViewModel to work, however it seems that using SourceList as a…
Wouter
  • 538
  • 6
  • 15
6
votes
1 answer

ReactiveUI ObservableAsPropertyHelper vs. normal backing variable

I'm struggling with ReactiveUI's learning curve so this question might be naive. Please help me understand the difference between: ObservableAsPropertyHelper _input public string Input {get {return _input.Value;}} and a normal backing…
JPtheK9
  • 275
  • 2
  • 12