title: User control and data bind in c# win apps
body: <p>Suppose I have a user control in win application and that has few control like:</p>
  
  <ul>
  <li>Employee name - textbox</li>
  <li>Employee age  - textbox</li>
  <li>Employee sex  - combo</li>
  <li>etc...</li>
  </ul>
  
  <p>Now I want to develop a generic user control in such a way that when I will assign something like <code>usercontrolInstance.Databind=mydataset</code>, then all the control will be populated with data.  </p>
  
  <p>If I can develop in this way then code will be reuse and approach will be professional.<br>
  I have no idea how could i develop user control in such a way where property called datasource will be there and when i assign my dataset to that property then all the textboxes in user control will be populated with data......</p>
  
  <p>Please guide me.<br>
  Thanks.</p>