Click here to Skip to main content
15,886,857 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello developers,
My project is hotel room booking concept, i have finished all those concept like booking ,cancel .. my problem is creating front screen , its appears all rooms which they are created and it shows different color, i.e if room is booked it shows red color, and room available means it shows white color ,

my table details are, Room_Master contains room_id ,room_facilities,

and Booking_master contains Booking_Id,Guest_name,Room_No,From_date,To_date,Check_in_time,Check_out_time
By Using this table how can i develop front screen..

Please Help me friends
Posted
Comments
Sinisa Hajnal 4-Nov-14 2:06am    
What is the question here? How to color the rooms? What have you tried?
Riyan Oliver 4-Nov-14 2:20am    
Hajnal ,I need sql query to select only room no from room_master and correspondent status of the all room from booking_Master,
i got code changing color in datagridview
Sinisa Hajnal 4-Nov-14 2:30am    
And what is the problem? You don't know SQL and cannot google it? Is Room_No from Booking_master and room_id from Room_master the link? How do you know the room is booked? (and just personal curiousity: why _master on table names?)
Thava Rajan 4-Nov-14 4:06am    
what is the relation between two tables

1 solution

Check this link. you have to manully set the cells background based on condition i.e. booked or not booked.

http://stackoverflow.com/questions/17858002/change-data-grid-view-row-colour-depend-upon-the-value[^]
 
Share this answer
 
Comments
Sinisa Hajnal 4-Nov-14 2:30am    
He didn't ask for color changing...

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