R
RufusGoofus
I have a stored procedure that sometimes returns an empty recordset. The
invoking web page attempts to bind the recordset to a datagrid. If the
autogeneratecolumns property on the datagrid is set to TRUE, the databind()
call fails (when the recordset is empty). If I set the autogeneratecolumns
property to FALSE, the databind() call succeeds when the recordSet is empty.
Is there a way to overcome this, or is it simply a limitation when
autoGenerateColumns is set to TRUE ? In theory, it would seem that
information about the columns (such as the column names) could be
returned to the web page even if there are now rows in the recordSet; this
would be nice, since it would enable the web page to display the column
headings without any data rows.
invoking web page attempts to bind the recordset to a datagrid. If the
autogeneratecolumns property on the datagrid is set to TRUE, the databind()
call fails (when the recordset is empty). If I set the autogeneratecolumns
property to FALSE, the databind() call succeeds when the recordSet is empty.
Is there a way to overcome this, or is it simply a limitation when
autoGenerateColumns is set to TRUE ? In theory, it would seem that
information about the columns (such as the column names) could be
returned to the web page even if there are now rows in the recordSet; this
would be nice, since it would enable the web page to display the column
headings without any data rows.