> - Are you sure you are using a TextBoxColumn, because the default for a
> byte[] is an ImageColumn ?
No, the DataGridView uses as default a DataGridViewImageColumn. How can
I tell it to use a TextBoxColumn instead?
> - Don't change ValueType or FormattedValueType
I won't, I tried it once, but it was no good experience ...
> - CellFormatting is fired for cells in all columns, so are you checking it's
> about the right column first.
This is already done.
> - And, are you sure you're actually setting a string ?
More than sure :)
> > So far, greetings to Netherlands (I think, you are from there...)
>
> No, but close :-)
Belgium?!
Thanks again
Bart Mermuys - 21 Dec 2006 14:50 GMT
Hi,
>> - Are you sure you are using a TextBoxColumn, because the default for a
>> byte[] is an ImageColumn ?
>
> No, the DataGridView uses as default a DataGridViewImageColumn. How can
Ah, it won't work with an DGVImageColumn.
> I tell it to use a TextBoxColumn instead?
Well that depends on how you are setting up the columns:
- if they've been setup at design time then open the column editor and
select the relevant column and then change ColumnType to DGVTextBoxColumn.
- if they are automatic setup at runtime by using DGV.AutoGenerateColumns,
then i'm not sure how to deal with this, if you can, add the columns using
the designer or manually from code, the most important column properties are
HeaderText and DataPropertyName.
>> - Don't change ValueType or FormattedValueType
>
[quoted text clipped - 15 lines]
>
> Belgium?!
Yeah
HTH,
Greetings
> Thanks again
hajduk_25@yahoo.de - 21 Dec 2006 15:14 GMT
> - if they are automatic setup at runtime by using DGV.AutoGenerateColumns,
> then i'm not sure how to deal with this, if you can, add the columns using
> the designer or manually from code, the most important column properties are
> HeaderText and DataPropertyName.
So they are... I think, i'll return to my first quick-and-dirty
solution adding a TextBoxColumn, filling it with the desired string
computed from the byte array and replacing the byte array column by the
so created TextBoxColumn, it's not a very beautiful solution, but it
works...
Thanks again for your help
> > Belgium?!
>
> Yeah
good country, good beer (maneken :))
so long and thanks for all the fish