Placing controls after a gridview

X

xbound

I'm using VS 2005 and having problems aligning controls AFTER a gridview.

Controls placed above the gridview all go where I want them to go, but not
those below. For example, a button I want it to appear below the gridview
appears to the gridview's right instead, whether it's in the design view or
when the web page is run. I want this button OUTSIDE and BELOW the
gridview.

Maybe it's just a simple thing I miss or something about the gridview I did
not grasp. Any insight or workaround appreciated.
 
G

Guest

I'm using VS 2005 and having problems aligning controls AFTER a gridview.

Controls placed above the gridview all go where I want them to go, but not
those below.   For example, a button I want it to appear below the gridview
appears to the gridview's right instead, whether it's in the design view or
when the web page is run.   I want this button OUTSIDE and BELOW the
gridview.

Maybe it's just a simple thing I miss or something about the gridview I did
not grasp.    Any insight or workaround appreciated.

gridview
<br />
button
 
X

xbound

Solved.

<asp:gridview HorizontalAlign="left" ..................... >

After taking out that HorizonAlign attribute, the controls that come after
the gridview are lodged in their intended positions.

Thanks for your suggestions.
 
G

Guest

Solved.

<asp:gridview  HorizontalAlign="left" ..................... >

After taking out that HorizonAlign attribute,  the controls that come after
the gridview are lodged in their intended positions.

Thanks for your suggestions.

Well, normally you don't need to set this, but I think it depends on
your layout. Glad, that it works now.

Cheers!
 

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

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top