I've just begun using VS.net2003 and am having a problem
getting records to fill a DataGrid in a Windows form.
Using Server Explorer I dragged the Categories table from
my <local> SQL Server NorthWind db onto the form. The
SQLConnection and SQLDataAdapter were created with no
problem and I can "Preview Data" with the SQLDataAdapter.
I generated DataSet1 based on the DataAdapter, dragged in
a DataGrid and set the DataSource property to DataSet1.
When I open the form no data is diplayed - only a single
record with (null) in every field. What am I missing?
Thanks!
Christoph Wienands - 26 Oct 2004 22:20 GMT
Well, there's a little bit manual work involved ;-) At some point you'll
have to fill the dataset.
DataAdpater1.Fill(DataSet1);
That should do the trick.
CU Christoph
> I've just begun using VS.net2003 and am having a problem
> getting records to fill a DataGrid in a Windows form.
[quoted text clipped - 8 lines]
>
> Thanks!