views:

240

answers:

2

I added few extra columns, and now these stupid X are back but only on the first line on certain columns. By X I mean the background the cell is crossed over like a large x. I used to have this issue before and solved it by setting the alternating color to white. Nothing else has been changed aside from adding 3 extra columns to the datagrid.

Anyone knows how to get rid of them? Thanks!

PS: whoever voted it for closing should really get off the high horse and get to work

+1  A: 

It's probably that the columns are set to image columns and the image source is invalid. This has been my experience at least. Check the source you are providing for the image of the column.

Edit:
Then try handling DataError as it will also present red x's for columns that have thrown errors.

Quintin Robinson
thanks,but no; no background images used.
gnomixa
Then try handling http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.dataerror.aspx as it will also present red x's for columns that have thrown errors.
Quintin Robinson
I am not using DataGridView, but I thanks I will check out the possible errors.
gnomixa
+1  A: 

Apparently, CF doesn't like it when plus and minus signs are used in column.MappingName property. Hope this helps someone.

gnomixa