中心数据网格 [英] center datagrid

查看:44
本文介绍了中心数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将数据网格水平居中在一个表单上,但它保持

对齐正确...

水平对齐属性似乎没用,就像把网格

放在一个居中的div或表格中

有没有其他方法可以使网格居中?

I am trying to center a datagrid horizontally on a form, yet it stays
aligned right...
the horizontal align property seems to be useless, just as putting the grid
inside a centered div or table
is there any other way to center the grid?

推荐答案

我的意思是它目前已经对齐了

" Vincent Vinet" < 6 *********** @ dessausoprin.com>一个écritdansle message de

新闻:OM ************** @ TK2MSFTNGP10.phx.gbl ...
I meant it is currently aligned left
"Vincent Vinet" <vi***********@dessausoprin.com> a écrit dans le message de
news:OM**************@TK2MSFTNGP10.phx.gbl...
我是试图将数据网格水平居中在一个表单上,但它保持正确对齐...
水平对齐属性似乎没用,就像把
网格放在一个居中的div或表中一样
还有其他方法可以使网格居中吗?
I am trying to center a datagrid horizontally on a form, yet it stays
aligned right...
the horizontal align property seems to be useless, just as putting the grid inside a centered div or table
is there any other way to center the grid?



把它放在一张桌子里。

< table width =" 100%">

< tr>

< td align =" center">

<你的数据网格>

< / td>

< / tr>

< /表>

" Vincent Vinet" < 6 *********** @ dessausoprin.com>在留言中写道

新闻:OM ************** @ TK2MSFTNGP10.phx.gbl ...
Put it in a table.

<table width="100%">
<tr>
<td align="center">
<your datagrid here>
</td>
</tr>
</table>
"Vincent Vinet" <vi***********@dessausoprin.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
我试图集中一个数据网格水平放在一个表单上,但它保持正确对齐...
水平对齐属性似乎没用,就像把
网格放在一个居中的div或表中一样
还有其他方法可以使网格居中吗?
I am trying to center a datagrid horizontally on a form, yet it stays
aligned right...
the horizontal align property seems to be useless, just as putting the grid inside a centered div or table
is there any other way to center the grid?



Vincent Vinet写道:
Vincent Vinet wrote:
我正在尝试将数据网格水平居中放置在窗体上,但它保持正确对齐...
水平对齐属性似乎没用,就像把网格放在一个居中的div或table中一样还有其他方法可以使网格居中吗?
I am trying to center a datagrid horizontally on a form, yet it stays
aligned right...
the horizontal align property seems to be useless, just as putting the grid
inside a centered div or table
is there any other way to center the grid?



< p align = center>

< div .... >

< span ...>


如果控件本身没有这么多选项


-

Curt Christianson

网站: http://www.darkfalz.com

博客: http://blog.darkfalz.com


这篇关于中心数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆