Binding is a concept that attaches the source with the target such that when something is modified on the source, it automatically reflects to the target. The concept of binding is not new in the .NET framework. It was there from the beginning. On the server-side controls, when we set
DataSource, we generally don't expect
DataSource to automatically produce the output to be rendered onto the actual HTML. We expect to call a
DataBind method corresponding to the control. Something magical happens in the background that generates the actual HTML from
DataSource and produces the output.
DataSource expects a collection of items where each of the items produces single entry on the ...