如何使用case expresion隐藏gridview的列 [英] how to hide column of gridview using case expresion

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

问题描述

我正在使用case表达式在gridview中显示数据,因为我没有在gridview中使用绑定字段并将自动生成的列设置为true,所有列都是通过select查询中的case表达式获取的。但我想隐藏一列,以便如何隐藏它?

I am using case expression to display data in gridview for that i havent used bound fields in gridview and set autogenerated columns to true, all columns are fetching by case expression in select query. But i want to hide one column so how to hide it??

推荐答案

如果条件已被使用此处 [ ^ ] - 但你可以用 case statements。
An if condition has been used here[^] - but you can just replace it with case statements.


您已将所有列绑定到gridView,这是从select查询中获取的。绑定后隐藏您想要的列。
You have bind all the column to gridView, which your getting from select query. After binding hide the column which you want .


这篇关于如何使用case expresion隐藏gridview的列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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