Click here to Skip to main content
15,920,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I want to hide coloum of asp.net gridView. but not by using .visible property.. is there any way to hide that coloum?? because i want to use that coloum in gridview operation. but it will not displayed to the user
Posted
Comments
Thanks7872 14-Jul-14 8:48am    
Gridview is meant to show data to user. If you don't want user to see the data,then why to use it in first place?

you can not use another way,because every ways and methods use of visibility property!
you can set column property as:
C#
dt.column[index].width=0;
dt.column[index].Frozen=true;

but this is not a standard work because by this work you have problem for resizing other columns.
 
Share this answer
 
Comments
rhl4569 14-Jul-14 8:48am    
ok .. thank you sir
 
Share this answer
 

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