如何使用dataview.RowFilter过滤数据表中的空白 [英] How to filter the blanks in the datatable using dataview.RowFilter

查看:523
本文介绍了如何使用dataview.RowFilter过滤数据表中的空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我想使用Dataview.RowFilter过滤数据表中的空白。

我该怎么做?



我在数据表中有空白。我想使用RowFilter在数据表中单独过滤空白。

Hi All

I want to filter the Blanks in Datatable using Dataview.RowFilter.
How can i do this?

I have blanks in datatable. i want to filter the blanks alone in the datatable using RowFilter.

推荐答案

由于您没有提到DataTable结构,但您可以这样做:



As you have not mentioned the DataTable structure but you can do it this way:

DataTable.DefaultView.RowFilter = "Value IS NOT NULL"





注意:Value是数据表中的列名。



希望它有所帮助。



Note: Value is a column name in the datatable.

Hope it helps.


这篇关于如何使用dataview.RowFilter过滤数据表中的空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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