数据网格问题-JSP [英] Data grid problem - JSP

查看:115
本文介绍了数据网格问题-JSP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
使用此datagrid时遇到问题.该代码在JSP中
假设我用过
< grd:textcolumn:textcolumn dataField ="poolId" headerText ="Pool ID"宽度="30" sortable ="true"<//grd:textcolumn>
如果我想在一个变量中设置poolId的值并想比较该值,我该怎么做?
请帮忙.......

我需要隔离列中每个单元格的值,并根据该值更改单元格的颜色...如何完成此操作.

我们将不胜感激.

Hi All,
I have facing a problem while using this datagrid. The code is in JSP
Suppose i have used
<grd:textcolumn:textcolumn dataField="poolId" headerText="Pool Id" width="30" sortable="true"></grd:textcolumn>
If i want to set the value of poolId in a variable and want to compare that value, how can i do it?
Please help................

I need to isolate the value of each cell in the column and change the color of the cell based on the value... how can i get this done.

Any help will be appreciated.

推荐答案

Gauraav写道:
Gauraav wrote:

普拉萨德先生坎德卡,
使用此数据网格时遇到问题.

Hi Mr.Prasad Khandekar,
I have facing a problem while using this datagrid.



如果您正在与之前在这里回答过您的人交谈,则最好编辑您的原始帖子,以便其他人可以看到上下文.如果您要回复文章,则应使用该文章下面的论坛.




If you''re talking to someone who answered you here before, you''d do better to edit your original post, so that people can see the context. If you''re responding to an article, then you should use the forum under that article.


Gauraav写道:
Gauraav wrote:

我需要隔离列中每个单元格的值,并根据该值更改单元格的颜色...如何我可以做到这一点吗?

I need to isolate the value of each cell in the column and change the color of the cell based on the value... how can i get this done.



如果这是ASP.NET,则通常编写一个方法,该方法在每个单元格都进行数据绑定时被调用,以检查该值并相应地设置所需的属性.我想这也适用于winforms,但是我已经在ASP.NET中看到了更多的功能.

网格不是有用的标签.您应该使用您使用的语言进行标记,如果使用的是Web应用程序,则应使用ASP.NET进行标记.



If this is ASP.NET, you typically write a method that is called when each cell is data bound, to check the value, and set the properties you want, accordingly. I guess that would work for winforms, too, but I''ve seen it done more in ASP.NET.

grid is not a useful tag. You should tag with the language you''re using, and ASP.NET if it''s a web app, etc.


这篇关于数据网格问题-JSP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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