Tuesday, August 18, 2009

Isit possible to highlight selected values in a gridview?

Isit possible to highlight selected values in a gridview?
In a gridview, I have got 4 columns.
The goal of this is to highlight the cell that matches the other cell.

An example:

For Each row in the Table
If columnA == L.column1 Then
L.column1 cell change color to yellow
Else If columnA == L.column2 Then
L.column2 cell change color to yellow
Else columnA == L.column3 Then
L.column3 cell change color to yellow
End
Next


A clearer example:
Let's say if:
columnA = Alex
L.column1 = Alex
L.column2 = John
L.column3 = Mary

columnA == L.column1
The result will be that the gridview will have L.column1 cell color change to yellow.

I am using VB 2008, asp.net. SQL database is inside VB 2008.

Plese do help!



View Full Details...............................

No comments:

Post a Comment