Click here to Skip to main content
15,891,021 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 27-Jan-10 1:22am
v4

1 solution

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 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.


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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900