Binding form controls to a component containing a dataset



I need some help in coding a component to window form. I would like to create a .net component that contains a data adapter and dataset with a sqlDataAdapter1.Fill(dataSet11); located in the component. Then I would like to attach window form control to the different fields. The reason why I am trying to do this is so that when the user switches through different GUI application windows, the data is not continuously requested from the database. If I embed the fill(dataset) in the gui form, I would be creating and destroying those datasets all the time.

Is there a step-by-step example of how to create a component and then tie the component’s dataset/dataview to a windows form controls



Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question