A
Aymer
Scenario: I have a SqlDataAdapter that I used to populate
a dataset.
oAdapter = New SqlDataAdapter(oCmd)
oDataSet = New DataSet()
oAdapter.Fill(oDataSet)
I then use the dataset to populate a datagrid.
dgFilings.DataSource = oDataSet
dgFilings.DataBind()
Problem: I don't want to populate the datagrid if there
were no records return from the query. So how do i check
if the dataset or the DataAdapter is empty or not?
In classic asp this would be done with the recordset
method eof().
thanks for your help,
aymer
aymerb[@].yahoo.com
a dataset.
oAdapter = New SqlDataAdapter(oCmd)
oDataSet = New DataSet()
oAdapter.Fill(oDataSet)
I then use the dataset to populate a datagrid.
dgFilings.DataSource = oDataSet
dgFilings.DataBind()
Problem: I don't want to populate the datagrid if there
were no records return from the query. So how do i check
if the dataset or the DataAdapter is empty or not?
In classic asp this would be done with the recordset
method eof().
thanks for your help,
aymer
aymerb[@].yahoo.com