Background
需要特殊显示DataGrid中指定行
Resolvent
if ds.Tables(0).Rows(n).Item("field") = target then
dtUser.Tables(0).Rows(n).Item("field") = "<b>"+target+"</b>"
endif
Conclusion
先对DataSet中DataTable的数据进行操作,然后用DataGrid显示。
这个方法我感觉比较便捷,但是如果要改变整行数据的style,可能就有些繁琐了。
大家有好的方法请和我交流,文章说的不对也请大家指教。