Hi,
I have a datagridview and a dataset. How can I possibly view the contents of dataset to the datagridview??
is this statement enough:
appriciate your assistance.. :)Code:datagridview1.datasource = dataset1;
datagridview1.show();
Printable View
Hi,
I have a datagridview and a dataset. How can I possibly view the contents of dataset to the datagridview??
is this statement enough:
appriciate your assistance.. :)Code:datagridview1.datasource = dataset1;
datagridview1.show();
You either assign the DataTable to the DataSource or the DataSet to the DataSource and the name of the table to the DataMember.Code:myDataGridView.DataSource = myDataSet.Tables("MyTable")
Code:myDataGridView.DataMember = "MyTable"
myDataGridView.DataSource = myDataSet