C
cjard
I ask, because I have a textbox bound to a bindingsource, which is
bound to a datatable(row)
The datatable is typed, and hence exports a Property called Column1
I added another property to the datatable by editing the partial
class, and Called it ColumnX - it simply returns "Hello World" all the
time
Then I tried to bind my textbox to it, editing the binding for .Text
from xyzBindingSource - Column1
To become: xyzBindingSource - ColumnX
Upon starting the app, I receive the error that "Cannot bind to the
property or column ColumnX on the DataSource."
The autogenerated code to do the binding looks like:
this.normalColTextBox.DataBindings.Add(
new System.Windows.Forms.Binding(
"Enabled", this.dataTable1BindingSource, "ColumnX", true,
OnPropertyChanged, "False"
)
);
What voodoo is going on here, whereby my datatablerow does indeed have
2 properties, Column1 and ColumnX, but only one of them is available
for binding?
bound to a datatable(row)
The datatable is typed, and hence exports a Property called Column1
I added another property to the datatable by editing the partial
class, and Called it ColumnX - it simply returns "Hello World" all the
time
Then I tried to bind my textbox to it, editing the binding for .Text
from xyzBindingSource - Column1
To become: xyzBindingSource - ColumnX
Upon starting the app, I receive the error that "Cannot bind to the
property or column ColumnX on the DataSource."
The autogenerated code to do the binding looks like:
this.normalColTextBox.DataBindings.Add(
new System.Windows.Forms.Binding(
"Enabled", this.dataTable1BindingSource, "ColumnX", true,
OnPropertyChanged, "False"
)
);
What voodoo is going on here, whereby my datatablerow does indeed have
2 properties, Column1 and ColumnX, but only one of them is available
for binding?