Click here to Skip to main content
15,888,024 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to compare every row in gridview with label text:

There is a gridview with 10 records with UserID and UserName....as total 5 Columns. There is a label, in that UserName is existing. Here my requirement is, each record in gridview can compare with Label text. If both are equal then comes to the next statement.
Posted
Updated 21-Apr-11 0:43am
v2

You do not explain precisely what it is that you are trying to do but it seems to me that you should really be comparing the username in the Label against the underlying datasource of the GridView.

Perhaps if you explain what you are doing, you will get more relevant help.
 
Share this answer
 
You can use RowCreated or RowDatabound method.
 
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