Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 9-Dec-11 3:33am
v2

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

Check this link and try to add value in Listview using SubItems.add() property.
 
Share this answer
 
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
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900