moving controls at runtime

X

xs

I have a datagrid and a button. The contents of datagrid is dynamic. My
button is placed below the datagrid. If there are too many items in Datagrid
the button and datagrid will be overlapped. Is there any way to move the
button at runtime?
 
S

Steve C. Orr [MVP, MCSD]

You have your web form pageLayout property set to GridLayout.
Instead, change it to FlowLayout. In my opinion this should be the default
in VS.NET.
 
S

Steve C. Orr [MVP, MCSD]

You may need to delete them and re-add them to your form after you change to
flow layout.
In the future set your form to flowlayout in the first place then you won't
have that problem.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
 
X

xs

It worked. Thanks a million
Steve C. Orr said:
You may need to delete them and re-add them to your form after you change to
flow layout.
In the future set your form to flowlayout in the first place then you won't
have that problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top