D
Dave
Hi have a question about the DataGrid.DataSource property. When you
use Visual Studio to set this property in Design mode (using the
Properties dialog), Visual Studio doesn't generate any code stating
something like
myGrid.DataSource = myDataSet;
as you might think it would. Yet when you fill the appropriate DataSet
and call DataBind() on the DataGrid, the grid gets set up with all the
right info. Most of the time when you change something in design mode,
the Web Form Designer will auto generate code for you, why isn't this
happening in the case of DataSource? How does the grid know which data
set to use? Is it stored in some other file?
Thanks,
Dave
use Visual Studio to set this property in Design mode (using the
Properties dialog), Visual Studio doesn't generate any code stating
something like
myGrid.DataSource = myDataSet;
as you might think it would. Yet when you fill the appropriate DataSet
and call DataBind() on the DataGrid, the grid gets set up with all the
right info. Most of the time when you change something in design mode,
the Web Form Designer will auto generate code for you, why isn't this
happening in the case of DataSource? How does the grid know which data
set to use? Is it stored in some other file?
Thanks,
Dave