ASP.Net中的网格视图要取消编辑某些列,而其他列可以编辑 [英] Grid View in ASP.Net want to Un edit some Columns where other Columns can Edit

查看:64
本文介绍了ASP.Net中的网格视图要取消编辑某些列,而其他列可以编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我使用Grid View控件显示用户数据取决于他的登录信息,但是当我显示时,我只希望某些字段可编辑,而其他字段则不可编辑.我们可以这样做吗?和

我们能否以水平形式而非垂直格式显示网格视图.

任何人都请帮我离开这里....
我正在使用Vb.Net 2010

在此先感谢
Ganesh Kumar Poosarla

Hi friends,

I am using a Grid View Control to display a Users Data depends upon his login but when I showing I want only some fields to be editable while other should not be editable. Can we do this any way? and

Can we display the grid view in Horizontal form not in vertical format.

Any one please help me out of here....
I am using Vb.Net 2010

Thanks in Advance
Ganesh Kumar Poosarla

推荐答案

您可以通过
完成此操作
You can do this by

Enabled='<%# Convert.ToString(Eval("db_column")) == somecondition ? false : true %>'



将其放在您的链接按钮上.



put this on your linkbutton.


这篇关于ASP.Net中的网格视图要取消编辑某些列,而其他列可以编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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