I am writing an app which displays ID3 tag information (from mp3 files) in a datagridview. The DGV is bound to a datatable.
One column keeps displaying little squares - which I thought must be unrecognised characters, but when I click into the cell they disappear and I am left with a blank cell. If I break into debug mode and view the string being put into the cell it is blank and the length is 0.
Does anyone know of a reason why the DGV would be showing these "characters". I have tried a number of different fonts incase the one I was using wasn't compatible with the data - however, the fact that the debug mode won't show anything in the string seems to suggest that this isn't the cause.
Cheers!
Jon

Datagridview displaying squares!
wanda
Without seeing any code, I would have to say that either the code you have written is having trouble reading the information that it needs to read because it either cannot find the information or does not understand it. I would think that this would cause some kind of runtime error, but vb might have some kind of error handling built in that causes this to just display nothing.
You may want to post your code here to give a better understanding of what your doing and so someone might be able to spot some error in your code.
papercodes
My thought is that it is displaying some unprintable character or some character that it doesnt have a correct encoding for. Perhaps even a Null Character which is normally used in C to terminate a string.
Without seeing the actually values its difficult to tell.
I'd look specifically into finding the actual value of this character - to determine what it is.
I'd also investigate the System.text.encoding class
http://msdn2.microsoft.com/en-us/library/system.text.encoding.aspx
ThE ViKinG
Spotty
Thanks, I got it to trim chr(0) and now the "blank" strings are actually blank and not filled with the squares. The squares that remain are definately characters of some kind as they remain in the datagrid cell when editing - as such I will check out the system.text.encoding class.
Thanks very much
Jon