gridview创建的行位置 [英] gridview created row position

查看:75
本文介绍了gridview创建的行位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,先生.我的页面上有15个文本框和一个按钮,一个gridview.我通过按钮单击将15列插入带有文本框的gridview中.每当我插入第一行时.行显示在gridview的中间.每当我插入第二行时.第一行向上移动,第二行显示在第一行下方.现在两行占据了整个gridview.
我的要求是我在rowstyle属性中设置第10行的高度.
无论何时插入第一行,它都会将整个gridview显示为一行.
如果第一行在gridview上排成10height的行,该怎么办.
如果有人知道答案,请帮助我.


hello sir. i have 15 textboxes and one button , one gridview on my page. i am inserting 15 columns to gridview with textboxes by button click. when ever i am inserting first row. row is displaying on middle of the gridview. when ever i am inserting second row. first row is moving up and second row is displaying below the first row. now two rows are occupied entire gridview.
my requirement is i set the height of the row 10 in rowstyle property.
either it displaying entire gridview as a row whenever first row inserted.
what do i do if first row is displaed as a row with 10height on gridview.
if any body know the answer plz help me.


thanking you sir.

推荐答案

这个问题对我来说不是很清楚,但似乎您希望自定义gridview内的布局.您可以使用gridview的Template列,然后在table或div或您想要的控件中设计布局.高度,宽度可以从那里调节.

希望这会有所帮助:)
The question is not very clear to me but it seems like you wish to customize the layout inside the gridview. You can use Template column of the gridview and then design the layout inside table or div or which ever control you want. Height, width can be regulated from there.

Hope this helps :)


这篇关于gridview创建的行位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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