根据数据库中的单元格值为datagridview行着色 [英] Color datagridview rows based on cell value from database
本文介绍了根据数据库中的单元格值为datagridview行着色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我需要根据从数据库加载的列的单元格数据为datagridview中的某些行着色,而不选择任何行?
请帮忙!
谢谢
注意:在基于C#的Windows窗体上,而不是基于ASP的
我已经尝试了很多方法,但是除非选择行,否则就没有用.
谢谢
Hello everyone,
I need to color some rows in datagridview based on data of cell of a column that loaded from database without selection any row?
Please help!
Thank you
note: on C# windows form based not in asp based
I have tried many ways but with no use unless I select the row.
Thanks
推荐答案
这可能对您有帮助
http://www.getdotnetcode.com/gdncstore/free/ColorDataGridViewCellsBasedOnData/ColorDataGridViewCellsBasedOnData.htm [a> [ ^ ]
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellformatting.aspx [ ^ ]
This may help you
http://www.getdotnetcode.com/gdncstore/free/ColorDataGridViewCellsBasedOnData/ColorDataGridViewCellsBasedOnData.htm[^]
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellformatting.aspx[^]
这篇关于根据数据库中的单元格值为datagridview行着色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文