hi,
I'd like to fill a gridview with a list of all appartments in the database table. Now, in this list there are also appartments that do belong to the userID that has been passed by querystring. For those I want to check the checkbox. For all others not it's unchecked.
What's the best approach?
I tried with if-else-statements to set the checked-attribute of the checkbox to either true or false. Tough, I didn't even find out how to compare the values of the datasource (yes, the gridview is bound to the datasource). If-else statements are also not possible because then we would have 2 tags with the same name.
I'm a newbie and certainly not on the right track (since this should be such a little task).
Thanks for any help!
I'd like to fill a gridview with a list of all appartments in the database table. Now, in this list there are also appartments that do belong to the userID that has been passed by querystring. For those I want to check the checkbox. For all others not it's unchecked.
What's the best approach?
I tried with if-else-statements to set the checked-attribute of the checkbox to either true or false. Tough, I didn't even find out how to compare the values of the datasource (yes, the gridview is bound to the datasource). If-else statements are also not possible because then we would have 2 tags with the same name.
I'm a newbie and certainly not on the right track (since this should be such a little task).
Thanks for any help!