DataBinding (MySQL/C#) displays System.Byte[]

  • Thread starter Thread starter michael_hk
  • Start date Start date
M

michael_hk

Hi All,

I am trying to bind a text field to a text box, I use

txtMessage.DataBindings.Add(new Binding("Text", dt, "message")) ;

where message is a text field in MySQL.

The result is the text box shows "System.Byte[]"

If I bind a char field to the text box, it works like a charm.

How to solve this problem?

Many thanks.

Michael
 
michael_hk said:
I am trying to bind a text field to a text box, I use

txtMessage.DataBindings.Add(new Binding("Text", dt, "message")) ;

where message is a text field in MySQL.

The result is the text box shows "System.Byte[]"

If I bind a char field to the text box, it works like a charm.

How to solve this problem?

It sounds like it's not actually a text field - it sounds like it's a
blob. At least, it sounds like the column value is a byte array rather
than a string.
 
Back
Top