Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,
I have two grid views according to gate pass number. 1st grid view contains product name and status where status is warranty under repair and under repair and another grid view contains product Name and status where status repaired.. and a text box for gate pass status outside grid view. If all the status of a gate pass is repaired then the textbox should show open otherwise close. How will i do it .Kindly Help.
Posted
Comments
Er. Puneet Goel 8-Apr-14 4:34am    
you mean in st Grid view or in both the grid view?
Member 10578683 8-Apr-14 4:40am    
1st gridview

1 solution

Run this Query

SQL
select * from Product_Details where Status NOT IN ('repaired')


Now, if there is any product that is not repaired yet will be return. SO if this do not return any record (check row count) then the textbox should show open otherwise close
 
Share this answer
 
Comments
Member 10578683 8-Apr-14 4:42am    
I have to show two grid view. If any value is present in 1st gridview then it should show open otherwise close
Member 10578683 8-Apr-14 4:43am    
if all are repaired then 1sr gridview will not appear only second gridview wil appear .
in this case the textbox will show close
Member 10578683 8-Apr-14 4:43am    
otherwise open
Er. Puneet Goel 8-Apr-14 4:44am    
YOu have mention in your Quest "If all the status of a gate pass is repaired then the textbox should show open otherwise close"
But here you saying if "if all are repaired then 1sr gridview will not appear only second gridview wil appear .
in this case the textbox will show close"

This is contradict to each other!!
Member 10578683 8-Apr-14 4:47am    
using two queries

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