ok I have a c# windows forms program that I am making in Visual Studio 2013
I had a text box set to databinding text property to a table in my sql database
using a dataset
so my data was auto saved from text box to the database and read back to textbox
now
I needed to change my textbox to a richtextbox so that I could bold, change color etc.. the font.
I do not see how to bind and read back the rtf property using databinding
I tried this
notesRichTextBox.DataBindings.Add(new Binding("Rtf", MyProgramDataSet.RTFTable, "RTF"));
but it only put some rtf data in the colomn and displayed nothing back in the richtextbox when I reopened the form
I tried setting the notesRichTextBox.Text = notesRichTextBox.Rtf and it just showed all of the underlying rtf code/text
Please help
I also tried at the beginning to set the databinding using the VisualStudio interface but Rtf doesn't seem to be an option
Answers
Know the answer? Post it. Somebody with the same question will find it here.