Home All Groups Group Topic Archive Search About

How do I change a Datagridview column type?

Author
7 Jan 2006 1:00 AM
sfsmith_1313
I am running an SQL query against a Teradata database that returns a datatype
of system.byte.  When I map this to a datagridview using the datasource
property I receive errors as it tries to display the byte column as an image
type column.  The message is "invalid parameter".

As the byte data is just a string of numbers, I would like to display it as
string data versus an image.  How can I accomplish this?

Thank You.

Author
7 Jan 2006 9:48 AM
Cor Ligthert [MVP]
Hi,

I think that you have to encode it in a seperate column.

AFAIK does the expression not have a solution for that, so you will have to
do that while busy, the first time by instance by looping and use the
system.encoding class

http://msdn2.microsoft.com/en-us/library/system.text.encoding.aspx

I hope this helps,

Cor

AddThis Social Bookmark Button