0

this is my database and what i want to do is when i fetch the column name it should concatenate with rectangleShapeis this possible or is there another way to do it

my database

name   check
 1       True
 2       False

code

while (dataReader.Read())
                {                   
                    string name= dataReader["name"].ToString();
                    string check = dataReader["check "].ToString();   
                    if (check =="True")
                    {
                        string add= "rectangleShape" + name ;
                        add.BackColor = Color.Red;  //but this doesn't work

                }
kunz
  • 1,063
  • 1
  • 11
  • 27

0 Answers0