在.Net 2003 vb.net中,如何通过单元格值更改行颜色. [英] IN .Net 2003 vb.net how to change row color by a cell value.

查看:79
本文介绍了在.Net 2003 vb.net中,如何通过单元格值更改行颜色.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何根据数据网格中的单元格值更改.net 2003中的行颜色.

我可以在2008年做到,但是要在.net 2003中编写什么代码.

我有一列称为状态.

如果状态值为"N",则该行应为红色.

请任何人让我知道执行此操作的解决方案

How could i change row color in .net 2003 basing on a cell value in a datagrid.

i can do it in 2008, but whats the code to write in .net 2003.

i have a column calledstatus.

if status value is ''N'' then that row should be in red color.

Please any one let me know the solution to do this

推荐答案

据我了解,使用使用DataGrid的.Net 1.1不能轻松做到这一点. .Net 2.0中提供的DataGridView更加易于使用.根据我发现的内容此处 [此处 [
From what I understand, you can''t do this easily using .Net 1.1 which uses the DataGrid. The DataGridView which was available in .Net 2.0 was much much easier to use. From what I found googling[^] it looks like you have to make a custom control in order to get to that kind of functionality in VS 2003 aka .Net 1.1. Here[^] is an MSDN link that confirms this, and here[^] is an MSDN article that discusses how to customize the DataGrid.

Hope this helps.


这篇关于在.Net 2003 vb.net中,如何通过单元格值更改行颜色.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆