Hi all, I m making a project on airlines reservation in C#. I have some problem.
The problem is when i accept the values from the user like Origin City,Destination City,Date of travel and class of travel. After filling this information user clicks on the Available Flight button. When clicking on this button application should fetch the values from the database depending upon the source and destination values. (Here is the main problem) If there is more than one flight for a particular route which is very much possible then user has to select the flight on his own. As the number of rows(flights) is not known these should be added at runtime containing a checkbox before every row. I m using Table Layout panel for this purpose. Plus i want to track the values in the row(flight) selected by the user for further processing. Hope u got my problem. Any idea please.
Gaurav arora
0
Junior Poster in Training
Recommended Answers
Jump to PostTable layout panel is good, but not for something like this due to the number of rows you might have with dynamic sizing. Use a gridview and add a checkbox column to the row that the user can edit.
Jump to PostWhen they are being loaded assign the id to either the tag of the row, or in a column.
Assuming you are waiting until a save or submit button is pressed, loop back through all the rows of the gridview. Get the checkbox column for each of the rows …
All 7 Replies
RaooF
0
Newbie Poster
dickersonka
104
Veteran Poster
Gaurav arora
0
Junior Poster in Training
dickersonka
104
Veteran Poster
Gaurav arora
0
Junior Poster in Training
Gaurav arora
0
Junior Poster in Training
dickersonka
104
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.