如何在不使用.visible属性的情况下隐藏gridview coloumn? [英] how to hide gridview coloumn without using .visible property?

查看:100
本文介绍了如何在不使用.visible属性的情况下隐藏gridview coloumn?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想隐藏asp.net gridView的coloum。但不是通过使用.visible属性..有没有办法隐藏那个coloum?因为我想在gridview操作中使用该coloum。但它不会向用户显示

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

推荐答案

你不能用另一种方式,因为每种方法和方法都使用了可见性属性!

您可以将列属性设置为:

you can not use another way,because every ways and methods use of visibility property!
you can set column property as:
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.


在ASP.Net中显示隐藏Gridview列 [ ^ ]


这篇关于如何在不使用.visible属性的情况下隐藏gridview coloumn?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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