By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,617 Members | 1,751 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,617 IT Pros & Developers. It's quick & easy.

Binding Problem when one of the dataset table is empty

P: n/a
Hello,

My problem is the following:

If one of the tables in the Dataset is empty, the command "Page.Databind"
is giving me this error :
"INDEX 0 IS NOT NON-NEGATIVE AND BELOW TOTAL ROWS COUNT"

for example:
if i have a textbox bounded to "bnd_field" in the table "tbl_child"
if in the dataset the table_child is empty, i will get the error
is there any way to solve this problem

Regards
Myrna


----------------------------------------------------------------------------
----

Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Myrna,

After populating the table you can check if it is empty and databind to it
only if it is not.

Eliyahu

"Mirna" <MIRNA@AIMS_NET> wrote in message
news:OB**************@TK2MSFTNGP09.phx.gbl...
Hello,

My problem is the following:

If one of the tables in the Dataset is empty, the command "Page.Databind"
is giving me this error :
"INDEX 0 IS NOT NON-NEGATIVE AND BELOW TOTAL ROWS COUNT"

for example:
if i have a textbox bounded to "bnd_field" in the table "tbl_child"
if in the dataset the table_child is empty, i will get the error
is there any way to solve this problem

Regards
Myrna


-------------------------------------------------------------------------- -- ----


Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.