Posted 20 years ago
by Reis
- CA
![Avatar](https://secure.gravatar.com/avatar/c0103c0090b67c9efe8b91d330f78843.jpg?s=64&d=identicon&r=g)
Hi,
I took code that correctly binds to a richTextBox
this.richTextBoxCode.DataBindings.Add("Text",this.dmwlConfigDataSet.CustomCode,this.dmwlConfigDataSet.CustomCode.CodeColumn.ColumnName);
and tried to bind it to the SystaxEditor.
this.syntaxEditor1.DataBindings.Add("Text",this.dmwlConfigDataSet.CustomCode,this.dmwlConfigDataSet.CustomCode.CodeColumn.ColumnName);
I get the following exception:
+ ex {"Object type cannot be converted to target type." } System.Exception
What is the right way of binding a DataTable text column to the SyntaxEditor?
Thanks in advance,
Jonathan
I took code that correctly binds to a richTextBox
this.richTextBoxCode.DataBindings.Add("Text",this.dmwlConfigDataSet.CustomCode,this.dmwlConfigDataSet.CustomCode.CodeColumn.ColumnName);
and tried to bind it to the SystaxEditor.
this.syntaxEditor1.DataBindings.Add("Text",this.dmwlConfigDataSet.CustomCode,this.dmwlConfigDataSet.CustomCode.CodeColumn.ColumnName);
I get the following exception:
+ ex {"Object type cannot be converted to target type." } System.Exception
What is the right way of binding a DataTable text column to the SyntaxEditor?
Thanks in advance,
Jonathan