Posted 20 years ago
by Reis
- CA
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