Soulless,
you cannot "copy" a DataSet to a DataGrid. DataGrid only knows how to do
DataBinding against the DataSource.
So, you set DataSource property of the DataGrid to DataSet, or to one of the
DataTables in the DataSet.
-- Peter
// Abandon all hope, ye who enter here.
http://www.eggheadcafe.com
unBlog:
http://petesbloggerama.blogspot.com
BlogMetaFinder:
http://www.blogmetafinder.com
- Show quoted text -
Hi,
I have created a dataset and have set my datasource on the grid to the
dataset.
I get the following error:
Error 12 Cannot implicitly convert type 'System.Data.DataTable' to
'OpTx.Extract.DataSet.Impac.dsUpdateSQL' C:\develop\extract\Forms\Impac
\FormScheduleNotes.cs 720 28 Forms
The syntax is:
dsUpdateSQL1 = ibrScheduleNotes.dsSched.Tables["Schedule"].Copy();
dsUpdateSQL1 is my dataset and the ibrScheduleNotes.dsSched is a
dataset from another class.