0
Reply

Question about the DataConnector (BindingSource) component

ultra2

ultra2

Apr 29 2005 7:53 AM
1.8k
Hi! I've just read about DataConnector (BindingSource) component. My little qusetion is:): I want to create ONE dataset in the whole application on the MainForm(not on all the forms!) and all the other form's data-aware components use that one. Ok I know I can set comps' datasources to the MainForm's DataSet in run-time... But I also want to retrieve the structure information from the DataSet to create colums in the grids IN DESIGN TIME, without to create any DataSet instance on the grid's form! -Does the Dataconnector (or BindingSource) component make it possible? ----------------------------------------------------------------------------- More clearly, for example, let's suppose: I have a grid and a DataConnector on the form1. The grid's datasource is set to the DataConnector. I have a DataSet class named DataSet1. I have a DataSet1 instance on the MainForm. It's name DataSet11. -Can I set the DataSet1 class to the DataConnector? -Can I create the colums in the grid according to the DataSet of the DataConnector IN DESIGN TIME, WITHOUT create any instance from the DataSet1 class? -Can the grid(on form1) use the Dataset11 object(on MainForm) through the DataConnector IN RUNTIME? ----------------------------------------------------------------------------- please help