Skip to Content
0
Former Member
Oct 07, 2005 at 09:43 AM

Issues and bugs regarding the new Bind method of the DataBind object

34 Views

Hi, (SDK 2005)

I'm trying to bind a textbox to a DataTable, doing something like

textbox.DataBind.Bind("TableName", "UniqueID")

1) it looks like there is a bug : this is not persisted when I dump the form to XML (the databind element looks like this :

<databind databound="0" table="" alias="" />

If I manually modify this element

<databind databound="1" table="Table" alias="column" />

this is ignored .. I have to do the binding the column manually ..

is this a bug or I'm doing something wrong ?

2) Is there a way to tell the textbox to bind to a specific row of the datatable .. it looks like it binds to the first row of the datatable only

Thank in advance for your help

best regards

Enrico Sabbadin