C
Craig Burkett
I have a web form populated mostly with labels and I also have a schema file
that describes the columns in a dataset coming back from a database call. I
dragged a dataset control to the web page and tied it to the schema. After
doing this I went to each label and set up each control's databindings,
tying the text property to the appropriate field. To initially test it I
created a function which returns a dataset built dynamically in code with
the expected fields and field names and types. The returned dataset was
successfully bound to the fields, so after finally receiving info about the
database and the fields in the table I need to access I created the
appropriate SQL statement and got a dataset back. It successfuly merged
with the typed dataset, but when I go to call the Databind method on the
first label on the form things fail. That is when I get 'Index 0 is not
non-negative and below total rows count'. I've verified the types and names
of the fields returned and I just can't see where the mis-match is.
Help!
Craig Burkett
that describes the columns in a dataset coming back from a database call. I
dragged a dataset control to the web page and tied it to the schema. After
doing this I went to each label and set up each control's databindings,
tying the text property to the appropriate field. To initially test it I
created a function which returns a dataset built dynamically in code with
the expected fields and field names and types. The returned dataset was
successfully bound to the fields, so after finally receiving info about the
database and the fields in the table I need to access I created the
appropriate SQL statement and got a dataset back. It successfuly merged
with the typed dataset, but when I go to call the Databind method on the
first label on the form things fail. That is when I get 'Index 0 is not
non-negative and below total rows count'. I've verified the types and names
of the fields returned and I just can't see where the mis-match is.
Help!
Craig Burkett