Gridview在编辑模式下跳出页面 [英] Gridview goes out of page in edit mode

查看:84
本文介绍了Gridview在编辑模式下跳出页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Gridview与对象数据源一起使用.当我单击编辑"链接进入编辑模式时,整个gridview不在页面内.

我将不胜感激.

I am using Gridview with object datasource. When I click on Edit link to go into edit mode, the entire gridview goes out of page.

I will appreciate any help.

推荐答案

使用BoundField编辑行时,任何列都会显示一个用于插入数据的大文本框.
您可以使用CSS(CssClass ="SelectedRowStyle")自定义文本框大小,并使网格更加友好.

您还可以使用带有detailview的主/明细(在网格上方或在popUpmode中)完全自定义输入表单.

使用这个:
http://msdn.microsoft.com/en-us/library/aa581796.aspx [ ^ ]
when you edit a row with BoundField, any column show a large textbox for inserting data.
You can customize textbox size with css (CssClass="SelectedRowStyle") and make your grid more friendly.

you can also use a master/detail with detailview (above grid or in popUpmode) for full customize your input form.

use this:
http://msdn.microsoft.com/en-us/library/aa581796.aspx[^]


这篇关于Gridview在编辑模式下跳出页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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