i would create a particular sql string.
I have this tables :
cities
-----------
city varchar not null primary key
etc
weeks
-----------
week varchar not null primary key
Insert_data
-----------
id int not null primary key
cityID varchar
week varchar
value1 int
etc
I would to bind asp.net gridview with this table structure:
+-----+-------+-------+-------+
| city| week1 | week2 | week3 |
+-----+-------+-------+-------+
| 1 | (y/n) | (y/n) | (y/n) |
| 2 | (y/n) | (y/n) | (y/n) |
| 3 | (y/n) | (y/n) | (y/n) |
| 4 | (y/n) | (y/n) | (y/n) |
| 5 | (y/n) | (y/n) | (y/n) |
+----+-------+-------+-------+
if there are records related to that week in insert_data the value will be Y.
It's possible to create a query string for this?