Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suggestions?

Status
Not open for further replies.

primagic

IS-IT--Management
Jul 24, 2008
476
GB
I am trying to create the frontend for a small ticketing module

I have a list of ticket types in a database with their respective price.

I want to display a grid like table with all the tickettypes, their prices and a textbox where the user can enter a quantity.

then when they submit it stores the number of each ticket type in a table

Any ideas?
 
If you are set on using a gridview for this, what you can try is creating your gridview and convert all your columns to templates. Then, get rid of any item templates and just keep the edit item templates and bind your data. Then to get the values you will have to loop through each row of the grid and retrieve the values.
 
Thanks.

I just thought laying it out like a grid would display the best. Any other way?
 
You can just use a standard html table. However, doing it this way won't be dynamic. Meaning, that if you add or remove ticket types, you have to manually change your table. With a bound grid, it will changed based on what is in your DB table. I would use the gridview, or better yet the listview.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top