我创建表单并在ListView中添加了5个字段,并且? [英] I create form and added 5 fields in ListView and?

查看:64
本文介绍了我创建表单并在ListView中添加了5个字段,并且?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生,


我创建表单并在列表视图中添加了5个字段和?

角色:
管理员角色,我显示所有5个字段和

用户角色,我只显示3个字段

但是,显示2个字段的设计时间.
我该怎么办???

错误,

1.当我选择剩余用户角色"时,两个字段显示为空.

2.如何在用户角色中隐藏其余2个字段?


提供解决方案?
通过mohan.

Dear sir,


I create form and added 5 fields in List View and?

Role:
Admin Role, I display all 5 fields and

User Role, I display only 3 fields

but, design time that 2 fields are display.
What can i do???

Error,

1. When i choose User Role Remaining 2 fields display empty.

2. How to hide these remaining 2 fields in user Role?


Give solution?
By mohan.

推荐答案

http://csharp.net-informations.com/gui/cs-listview.htm [ ^ ]

检查此链接,然后尝试使用SubItems.add()属性在Listview中添加值.
http://csharp.net-informations.com/gui/cs-listview.htm[^]

Check this link and try to add value in Listview using SubItems.add() property.




如果列上有ID,则应该可以使用ListView1.FindControl("IDOfControl")并将其.Visible属性设置为 false

问候,
爱德华
Hi,

If you have an ID on the column you should be able to use ListView1.FindControl("IDOfControl") and set its .Visible property into false

Regards,
Eduard


这篇关于我创建表单并在ListView中添加了5个字段,并且?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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