|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How do I change a Datagridview column type?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. 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 |
|||||||||||||||||||||||