Category: Databinding - South African Coderz
 
Ok. This just blew me away! 

You may know of it, I didn't until till today and it literally blew my socks of. 

This is only going to be truly amazing to you if you are an old skewl (indulge me) programmer like I am. We/I are used to loading controls, such as list boxes the old fashioned way by stepping through a "For..Next" loop and adding each item one at a time. 

Check this out. It's C# and imagine its on a page.

Here it is:

String [] _DataSource = {"One", "Two", "Three", "Four" };

Private void ShowItem()
{
      _DisplayList.DataSource = _DataSource;
      _DisplayList.DataBind();

       //DisplayList is a listbox somewhere on the form
}

HUH? I told u it was amazing. Go try it!