终于解决可恶的FireFox DataGrid的黑线条 高兴

本文解决了 Firefox 浏览器中 DataGrid 显示异常的问题。当使用 DataGrid 时,若设置不当,Firefox 中会出现黑色网格线,影响美观。解决方法为将 GridLines 设置为 None。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 FireFox DataGrid的黑线条

 

太晕了,以前遇到过一直没解决,今天认真查了下,确实,,只要设置GridLines=None  就OK了

 

Google搜索,文章原文

 

Rules="all" in Datagrid breaks Firefox
If you don't know any better, if you slap a datagrid on your form, it will look great in IE, but open it in firefox, and you get these black gridlines.  Looking at the HTML I saw a rules=”all” tag.  A quick search on google found that you must set the datagrid's GridLines to none to get ride of it.
 

网址: http://scottelkin.com/archive/2004/11/08/266.aspx