如何使Gridview Edit行样式保持不变 [英] How to make Gridview Edit row style remain same

查看:114
本文介绍了如何使Gridview Edit行样式保持不变的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个gridview,我们可以用它来编辑和更新行数据。当我单击编辑链接按钮时,它会大幅增加gridview的大小。是的,我的gridview有很多列。

但是即使在编辑之后我怎么能让我的gridview看起来相同。

这就是我试过的。我添加了这个CSS并在Gridview中使用了css类

I have a gridview with which we can edit and update the row data. When I click on Edit link button, it increases the size of gridview drastically. And yes my gridview has lot of columns.
But how can I make my gridview look same size even after Edit.
This is what I tried. I added this is CSS and used css class in Gridview

.GridViewEditRow input[type=text] {width:50px;} 



但是没有任何帮助。



有人可以帮我吗?


But did not help any.

Can anyone help me with this please?

推荐答案

http://forums.asp.net/t/992654.aspx?Horizo​​ntal+Scrollbars + in + GridView [ ^ ]



这在一定程度上解决了我的问题。它实际上保持相同的风格,但不是从页面推进。
http://forums.asp.net/t/992654.aspx?Horizontal+Scrollbars+in+GridView[^]

This solved my problem to an extent. It didnto actually remain same style but is not pushing way from page.


这篇关于如何使Gridview Edit行样式保持不变的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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