
March 15th, 2004, 06:27 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Specifying box width according to val from MySql db
Hi, my problem is this: I need to set the width or height value of a box (or a frame, or anything really) according to the value fetched from a MySql query to a database.
For example: select width from stands where stand_id = whatever, then draw this stand according to the stored values.
I know for example you can do
Code:
dataGrid1.DataSource=ds.Tables["seats"]
OR
Code:
comboSeatTypes.DataSource=objTblSeatTypes.getSeatTypes().DefaultViewManager;
comboSeatTypes.DisplayMember="seat_types.name";
If you are wondering what the references to seats and stands are, it refers to the drawing of a football stadium.
Thanks in advance.
|