P
Pai
Hello there,
I have a Panel and I have created checkboxes dynamically and added it
to the panel.
The code is as below:
foreach (...)
{
My_Roles = new CheckBox();
My_Roles.ID = my_role.Name;
My_Roles.Text = my_role.Name;
My_Roles.AutoPostBack = true;
Panel1.Controls.Add(My_Roles);
}
The Checkboxes get added one after another, I would like the controls
to be added one below another.
Is there any property of the Panel which needs to be set for the same.
Any suggestions please.
Kind Regards,
Srikanth Pai
I have a Panel and I have created checkboxes dynamically and added it
to the panel.
The code is as below:
foreach (...)
{
My_Roles = new CheckBox();
My_Roles.ID = my_role.Name;
My_Roles.Text = my_role.Name;
My_Roles.AutoPostBack = true;
Panel1.Controls.Add(My_Roles);
}
The Checkboxes get added one after another, I would like the controls
to be added one below another.
Is there any property of the Panel which needs to be set for the same.
Any suggestions please.
Kind Regards,
Srikanth Pai