J
Joe Au
In the Page_Load event of web form, I create a DataSet and fill up by a
DataAdapter. Then I can retrieve data by the following command :
ds1.Tables(0).Rows(0).Item("accno")
However, when I issue the same command in DataGrid1_SelectedIndexChanged,
error occurs, Tables(0) cannot be reference. How can I fix it? Thanks.
DataAdapter. Then I can retrieve data by the following command :
ds1.Tables(0).Rows(0).Item("accno")
However, when I issue the same command in DataGrid1_SelectedIndexChanged,
error occurs, Tables(0) cannot be reference. How can I fix it? Thanks.