天天看点

[VB.NET]dataview排序/查找

[VB.NET]dataview排序/查找

<script type="text/javascript"> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

dataview排序/查找

dataview.sort= styl

可以对styl排序,如果我需要对多个字段排序呢

dataview.find

dataview.findrow怎么用,尤其是多字段查找

__________________________________________________________________________

http://msdn2.microsoft.com/zh-cn/library/system.data.dataview.sort(VS.80).aspx

view.Sort = State, ZipCode DESC

http://msdn2.microsoft.com/zh-cn/library/46d41xk2(vs.80).aspx

__________________________________________________________________________

在DataView里进行查找最好用RowFilter来过滤。类似如下:

DataView dv = table.DefaultView;

dv.RowFilter = id = 1 ;

if (dv.Count> 0)

{

//找到了dv.Count个记录。

}

__________________________________________________________________________

哦,谢谢,查找问题,我是想定位到那一行,作修改

__________________________________________________________________________

view.Sort = State, ZipCode DESC

find时怎么写呢

view.find( ss,xx )? 好像不对呢

__________________________________________________________________________

知道了,谢谢

__________________________________________________________________________

继续阅读