Click here to Skip to main content
16,017,333 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi all
How to compare one cell data of grid view and text box
Posted
Comments
Hiren solanki 24-Sep-10 3:00am    
Please put your question in detail.

Grid.Rows[rowindex].Cells[cellindex].Text

gives the value in grid view

then checck it with ur textbox value
 
Share this answer
 
Comments
spandananair 24-Sep-10 5:54am    
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
1. Get the row of grid (so you need to go row-by-row)
2. Get the control of the cell you want data for comparison. Use findcontrol method if needed.
3. One you have the cell control, get data out of it and then compare it with another data placed in a textbox.
 
Share this answer
 
Comments
spandananair 24-Sep-10 5:41am    
can u tel me clearly i couldn't understand
spandananair 24-Sep-10 5:54am    
Reason for my vote of 5
Automatic vote of 5 for accepting 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