displaing data from a dataset in another form

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

Hello

Putting the myDataSet in Form2 I'd like to put a DataGrid1 in Form1 that
gets data from the myDataSet in Form2

If I select DataGrid1, selecting in the property window DataSource I can't
see myDataSet,

I know I can set that by code, but how can I do it visually?



N.B. I'm using Visual c# .net



Thanks, Peter
 
You can just type in the name of a dataset, but it will have to exist when
you bind the data. I would suggest that in Form2, you put the dataset into a
session variable, then retrieve it into a local variable in Form1 before you
bind.
 
Back
Top