Binding Problem when one of the dataset table is empty

M

Mirna

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
 
E

Eliyahu Goldin

Myrna,

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

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top