I am having (what I suspect is a school boy error) regarding datagrids and datasets. I have a dataset control on the form (ds1) and a datagrid (dg1). In ds1 there is a table called tbl1 and within that table there are columns col1 and col2.
I load data into ds1 which I know is present as I can use msgbox to get data row items.
I can not get the data to display in the datagrid. I have tried using the following:
and also using the "Choose Data Source" in the dg1 little arrow menu.
Neither work. Do I have to set anything else up with the datagrid, such as setting columns? Ideally I want the dataset to pass all the information to the datagrid.
I load data into ds1 which I know is present as I can use msgbox to get data row items.
I can not get the data to display in the datagrid. I have tried using the following:
VB.NET:
dg1.DataSource = ds1.Tables("tbl1")
and also using the "Choose Data Source" in the dg1 little arrow menu.
Neither work. Do I have to set anything else up with the datagrid, such as setting columns? Ideally I want the dataset to pass all the information to the datagrid.